body {
  font-family: 'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  margin: 0;
  background: #f7f8fa;
  color: #222;
  line-height: 1.6;
}
header {
  background: #fff;
  padding: 32px 0 16px 0;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.logo {
  font-size: 2rem;
  font-weight: bold;
  color: #2d8cf0;
  margin-bottom: 8px;
}
h1 {
  margin: 0 0 8px 0;
  font-size: 1.5rem;
}
.subtitle {
  color: #888;
  font-size: 1rem;
}
.school-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding: 32px 8px;
}
.school-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.school-card:hover {
  box-shadow: 0 4px 16px rgba(45,140,240,0.12);
}
.school-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.school-name {
  font-size: 1.4rem;
  font-weight: bold;
  color: #2d8cf0;
  margin: 0;
}
.school-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.school-tags .tag {
  background: #f0f7ff;
  color: #2d8cf0;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.85rem;
  margin: 0;
}
.school-desc {
  color: #666;
  line-height: 1.6;
  margin: 0;
}
.school-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
}
.info-item i {
  color: #2d8cf0;
  width: 20px;
  text-align: center;
}
.school-reviews {
  margin: 0;
}
.review-item {
  display: flex;
  gap: 8px;
  font-size: 0.9rem;
  color: #666;
}
.review-user {
  color: #2d8cf0;
  font-weight: bold;
}
.detail-btn {
  background: #2d8cf0;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 20px;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s;
  margin-top: 8px;
}
.detail-btn:hover {
  background: #1769aa;
}
/* 弹窗样式 */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal.hidden {
  display: none;
}
.modal-content {
  background: #fff;
  border-radius: 10px;
  padding: 32px 24px 24px 24px;
  min-width: 300px;
  max-width: 90vw;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  position: relative;
}
.close-btn {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 1.5rem;
  color: #888;
  cursor: pointer;
}
@media (max-width: 600px) {
  .school-card {
    width: 95vw;
    padding: 18px 8px 12px 8px;
  }
  .modal-content {
    padding: 18px 8px 12px 8px;
  }
}

/* 导航栏 */
.navbar {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #2d8cf0;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: #666;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: #2d8cf0;
}

.search-box {
  display: flex;
  align-items: center;
}

.search-box input {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 200px;
  font-size: 0.9rem;
}

.search-box button {
  background: #2d8cf0;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  margin-left: 8px;
  cursor: pointer;
}

/* Banner */
.banner {
  background: linear-gradient(135deg, #2d8cf0, #19be6b);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.banner-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.banner h1 {
  font-size: 2.5rem;
  margin: 0 0 20px 0;
}

.banner .subtitle {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-weight: 500;
}

.banner-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

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

.stat-number {
  font-size: 2rem;
  font-weight: bold;
}

.stat-label {
  font-size: 1rem;
  margin-top: 8px;
}

/* 分类标签 */
.category-tags {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  border-bottom: 2px solid #eee;
  overflow: hidden;
}

.tags-container {
  display: flex;
  gap: 0;
  margin-bottom: 30px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  padding-bottom: 10px; /* 为滚动条留出空间 */
}

.tags-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.tag {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  color: #666;
  position: relative;
  margin-bottom: -2px;
  white-space: nowrap; /* 防止文字换行 */
  flex-shrink: 0; /* 防止标签被压缩 */
}

.tag:hover {
  color: #2d8cf0;
}

.tag.active {
  color: #2d8cf0;
  border-bottom-color: #2d8cf0;
  font-weight: 500;
}

/* 手机端样式 */
@media (max-width: 768px) {
  .category-tags {
    padding: 0 10px;
    margin: 20px auto;
  }

  .tags-container {
    margin-bottom: 20px;
  }

  .tag {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  /* 添加左右滑动提示 */
  .tags-container::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(to right, transparent, #f7f8fa);
    pointer-events: none;
  }

  .tags-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(to left, transparent, #f7f8fa);
    pointer-events: none;
  }
}

/* 标签页内容 */
.tab-content {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
  display: block;
}

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

/* 驾校列表 */
.school-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.school-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.school-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.school-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.school-name {
  font-size: 1.4rem;
  font-weight: bold;
  color: #2d8cf0;
}

.school-tags {
  display: flex;
  gap: 8px;
}

.school-desc {
  color: #666;
  margin-bottom: 16px;
}

.school-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
}

.info-item i {
  color: #2d8cf0;
}

.school-reviews {
  margin-bottom: 16px;
}

.review-item {
  display: flex;
  gap: 8px;
  font-size: 0.9rem;
}

.review-user {
  color: #2d8cf0;
  font-weight: bold;
}

.detail-btn {
  background: #2d8cf0;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s;
}

.detail-btn:hover {
  background: #1769aa;
}

/* 学车指南 */
.guide-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.guide-section h2 {
  text-align: center;
  margin-bottom: 40px;
  color: #2d8cf0;
}

.guide-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.guide-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s;
}

.guide-card:hover {
  transform: translateY(-5px);
}

.guide-card i {
  font-size: 2.5rem;
  color: #2d8cf0;
  margin-bottom: 20px;
}

.guide-card h3 {
  margin: 0 0 10px 0;
  color: #333;
}

.guide-card p {
  color: #666;
  margin: 0;
}

/* 页脚 */
footer {
  background: #333;
  color: #fff;
  padding: 60px 0 20px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-section h3 {
  color: #fff;
  margin-bottom: 20px;
}

.footer-section p {
  color: #ccc;
  margin: 8px 0;
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-links a {
  color: #fff;
  font-size: 1.5rem;
  transition: color 0.2s;
}

.social-links a:hover {
  color: #2d8cf0;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #444;
}

.footer-bottom p {
  color: #999;
  margin: 0;
}

/* 弹窗 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  color: #999;
  cursor: pointer;
  transition: color 0.2s;
}

.close-btn:hover {
  color: #333;
}

.modal h2 {
  color: #2d8cf0;
  margin: 0 0 20px 0;
}

.modal-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.modal-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.modal-reviews {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.modal-reviews li {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.review-user {
  color: #2d8cf0;
  font-weight: bold;
}

.review-score {
  color: #ffb400;
}

.contact-btn {
  background: #2d8cf0;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  margin-top: 20px;
  transition: background 0.2s;
}

.contact-btn:hover {
  background: #1769aa;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    height: auto;
    padding: 20px;
  }

  .nav-links {
    margin: 20px 0;
    flex-wrap: wrap;
    justify-content: center;
  }

  .search-box {
    width: 100%;
  }

  .search-box input {
    width: 100%;
  }

  .banner h1 {
    font-size: 2rem;
  }

  .banner-stats {
    flex-direction: column;
    gap: 20px;
  }

  .school-list {
    grid-template-columns: 1fr;
  }
} 