/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: inherit;
}

/* 导航栏 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo h1 {
  font-size: 24px;
  color: #e74c3c;
  font-weight: bold;
}

.logo span {
  font-size: 11px;
  color: #999;
  display: block;
  margin-top: -2px;
  letter-spacing: 1px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a {
  color: #333;
  font-size: 15px;
  transition: color 0.3s;
}

.nav a:hover, .nav a.active {
  color: #e74c3c;
}

.btn-nav {
  background: #e74c3c;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 20px;
}

/* Banner */
.banner {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: #fff;
  padding: 150px 0 100px;
  text-align: center;
}

.banner-content h2 {
  font-size: 48px;
  margin-bottom: 15px;
  font-weight: bold;
}

.banner-slogan {
  font-size: 22px !important;
  margin-bottom: 15px !important;
  font-weight: bold;
  letter-spacing: 3px;
}

.banner-content p {
  font-size: 20px;
  opacity: 0.9;
  margin-bottom: 30px;
}

.banner-btns {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn-primary {
  background: #fff;
  color: #e74c3c;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: bold;
}

.btn-secondary {
  background: transparent;
  color: #fff;
  padding: 12px 30px;
  border-radius: 25px;
  border: 2px solid #fff;
}

/* 通用区块 */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 36px;
  color: #333;
  margin-bottom: 10px;
}

.section-title p {
  color: #666;
  font-size: 16px;
}

.section-title strong {
  color: #e74c3c;
}

/* 分类导航 */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.tab-btn {
  padding: 8px 20px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}

.tab-btn:hover, .tab-btn.active {
  background: #e74c3c;
  color: #fff;
  border-color: #e74c3c;
}

/* 服务网格 */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #f0f0f0;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.service-card.offline {
  opacity: 0.6;
  filter: grayscale(50%);
}

.service-card.discount {
  border: 2px solid #f39c12;
}

.service-icon {
  font-size: 40px;
  margin-bottom: 15px;
}

.service-card h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
}

.service-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
  line-height: 1.5;
}

.service-price {
  font-size: 20px;
  color: #e74c3c;
  font-weight: bold;
  margin-bottom: 10px;
}

.service-price .original-price {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
  margin-left: 8px;
  font-weight: normal;
}

.service-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag, .tag-hot {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
}

.tag {
  background: #f5f5f5;
  color: #666;
}

.tag-hot {
  background: #ffe6e6;
  color: #e74c3c;
}

.tag-offline {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  background: #f0f0f0;
  color: #999;
}

/* 服务统计 */
.service-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 60px;
  padding: 40px;
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  border-radius: 16px;
}

.stat-box {
  text-align: center;
  color: #fff;
}

.stat-box .stat-num {
  font-size: 48px;
  font-weight: bold;
  display: block;
}

.stat-box .stat-label {
  font-size: 16px;
  opacity: 0.9;
}

/* 关于我们 */
.about {
  background: #f8f9fa;
}

.about-intro {
  max-width: 900px;
  margin: 0 auto 50px;
  text-align: center;
}

.about-intro p {
  font-size: 16px;
  color: #666;
  line-height: 2;
  text-align: justify;
}

.about-stats-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 60px;
}

.stat-box-large {
  text-align: center;
  padding: 30px 40px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.stat-box-large .stat-icon {
  font-size: 36px;
  display: block;
  margin-bottom: 10px;
}

.stat-box-large .stat-num {
  font-size: 42px;
  color: #e74c3c;
  font-weight: bold;
  display: block;
}

.stat-box-large .stat-label {
  font-size: 14px;
  color: #999;
}

/* 子标题 */
.sub-title {
  text-align: center;
  font-size: 28px;
  color: #333;
  margin-bottom: 40px;
  position: relative;
}

.sub-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #e74c3c;
  margin: 15px auto 0;
}

/* 时间线 */
.timeline-section {
  margin-bottom: 60px;
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: #e74c3c;
}

.timeline-item {
  display: flex;
  margin-bottom: 30px;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: #e74c3c;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px #e74c3c;
}

.timeline-date {
  width: calc(50% - 30px);
  padding: 15px 20px;
  background: #e74c3c;
  color: #fff;
  border-radius: 8px;
  font-weight: bold;
  text-align: right;
}

.timeline-item:nth-child(odd) .timeline-date {
  text-align: left;
}

.timeline-content {
  width: calc(50% - 30px);
  padding: 15px 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.timeline-content h4 {
  color: #333;
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 14px;
  color: #666;
}

/* 荣誉 */
.honors-section {
  margin-bottom: 60px;
}

.honors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.honor-item {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s;
}

.honor-item:hover {
  transform: translateY(-5px);
}

.honor-year {
  display: inline-block;
  background: #e74c3c;
  color: #fff;
  padding: 4px 15px;
  border-radius: 15px;
  font-size: 12px;
  margin-bottom: 12px;
}

.honor-item h4 {
  color: #333;
  font-size: 16px;
  margin-bottom: 10px;
}

.honor-item p {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

/* 核心优势 */
.advantages-section {
  margin-bottom: 40px;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.advantage-item {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #eee;
  transition: all 0.3s;
}

.advantage-item:hover {
  border-color: #e74c3c;
  box-shadow: 0 8px 25px rgba(231, 76, 60, 0.15);
}

.advantage-icon {
  font-size: 40px;
  margin-bottom: 15px;
}

.advantage-item h4 {
  color: #333;
  font-size: 18px;
  margin-bottom: 12px;
}

.advantage-item p {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
}

/* 联系方式 */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.contact-item {
  text-align: center;
  padding: 40px 30px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.contact-icon {
  font-size: 50px;
  margin-bottom: 20px;
}

.contact-item h4 {
  font-size: 18px;
  color: #333;
  margin-bottom: 15px;
}

.contact-item p {
  font-size: 16px;
  color: #666;
  line-height: 1.8;
}

.phone-main {
  font-size: 28px !important;
  color: #e74c3c !important;
  font-weight: bold;
}

/* 分店地址 */
.branches-section {
  margin-top: 40px;
}

.branches-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.branch-item {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  border-left: 4px solid #e74c3c;
}

.branch-tag {
  display: inline-block;
  background: #e74c3c;
  color: #fff;
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 12px;
  margin-bottom: 10px;
}

.branch-item h4 {
  color: #333;
  font-size: 16px;
  margin-bottom: 5px;
}

.branch-item p {
  font-size: 14px;
  color: #999;
}

/* 扫码预约 */
.download {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.download .section-title h2,
.download .section-title p {
  color: #fff;
}

.download-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
}

.qrcode-box {
  text-align: center;
}

.qrcode-placeholder {
  width: 200px;
  height: 200px;
  background: #fff;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #333;
}

.qrcode-placeholder p:first-child {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

.qrcode-placeholder p:last-child {
  font-size: 14px;
  color: #666;
}

.download-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step {
  display: flex;
  align-items: center;
  gap: 20px;
}

.step-num {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
}

.step-text h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.step-text p {
  font-size: 14px;
  opacity: 0.8;
}

/* 页脚 */
.footer {
  background: #2c3e50;
  color: #fff;
  padding: 60px 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.footer-brand p {
  color: #bdc3c7;
  margin-bottom: 5px;
}

.footer-phone {
  margin-top: 15px;
  font-size: 14px;
}

.footer-links h4 {
  margin-bottom: 15px;
}

.footer-links a, .footer-links p {
  display: block;
  color: #bdc3c7;
  margin-bottom: 8px;
  font-size: 14px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #34495e;
  color: #bdc3c7;
  font-size: 14px;
}

/* 响应式 */
@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    height: auto;
    padding: 15px 20px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
  }

  .banner {
    padding: 180px 0 80px;
  }

  .banner-content h2 {
    font-size: 32px;
  }

  .banner-slogan {
    font-size: 18px !important;
  }

  .banner-content p {
    font-size: 16px;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .sub-title {
    font-size: 24px;
  }

  /* 关于我们 */
  .about-stats-grid {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .stat-box-large {
    width: 100%;
    max-width: 280px;
  }

  /* 时间线 */
  .timeline::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(odd) {
    flex-direction: column;
    padding-left: 50px;
  }

  .timeline-item::before {
    left: 20px;
  }

  .timeline-date,
  .timeline-item:nth-child(odd) .timeline-date {
    width: 100%;
    text-align: left;
    margin-bottom: 10px;
  }

  .timeline-content {
    width: 100%;
  }

  /* 荣誉和优势 */
  .honors-grid,
  .advantages-grid {
    grid-template-columns: 1fr;
  }

  /* 联系方式 */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .branches-grid {
    grid-template-columns: 1fr;
  }

  .download-content {
    flex-direction: column;
    gap: 40px;
  }

  .footer-content {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .service-stats {
    flex-direction: column;
    gap: 30px;
  }

  .category-tabs {
    gap: 8px;
  }

  .tab-btn {
    padding: 6px 12px;
    font-size: 13px;
  }
}

/* 隐藏未选中分类的服务 */
.service-card.hidden {
  display: none;
}