/*
  上海衷遥空调制冷有限公司 - 官网样式
  空调维修/清洗/安装/回收服务
*/

body {
  font-family: 'Microsoft YaHei', 'Source Han Sans', 'PingFang SC', sans-serif;
}

:root {
  --white-color:                  #ffffff;
  --primary-color:                #007bff;
  --primary-dark:                 #0056b3;
  --secondary-color:              #00bcd4;
  --accent-color:                 #e3f2fd;
  --section-bg-color:             #f0f8ff;
  --site-footer-bg-color:         #1a2530;
  --custom-btn-bg-color:          #007bff;
  --custom-btn-bg-hover-color:    #0056b3;
  --dark-color:                   #1a2530;
  --p-color:                      #5a6f80;
  --border-color:                 #e0eaf4;
  --body-font-family:             'Microsoft YaHei', 'Source Han Sans', 'PingFang SC', sans-serif;
  --h1-font-size:                 52px;
  --h2-font-size:                 42px;
  --h3-font-size:                 30px;
  --h4-font-size:                 26px;
  --h5-font-size:                 22px;
  --h6-font-size:                 20px;
  --p-font-size:                  16px;
  --btn-font-size:                16px;
  --border-radius-large:          16px;
  --border-radius-medium:         12px;
  --border-radius-small:          8px;
}

body {
  background-color: var(--white-color);
  font-family: var(--body-font-family);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--dark-color);
  font-weight: 700;
}

h1 { font-size: var(--h1-font-size); letter-spacing: -1px; }
h2 { font-size: var(--h2-font-size); color: var(--primary-color); letter-spacing: -1px; }
h3 { font-size: var(--h3-font-size); }
h4 { font-size: var(--h4-font-size); }
h5 { font-size: var(--h5-font-size); color: var(--primary-color); }
h6 { font-size: var(--h6-font-size); }

p { color: var(--p-color); font-size: var(--p-font-size); line-height: 1.8; }

a { color: var(--primary-color); text-decoration: none; transition: all 0.3s; }
a:hover { color: var(--primary-dark); }

.section-padding { padding-top: 100px; padding-bottom: 100px; }
.section-bg { background-color: var(--section-bg-color); }

.custom-block-wrap {
  background: var(--white-color);
  border-radius: var(--border-radius-medium);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  transition: all 0.35s;
}
.custom-block-wrap:hover {
  box-shadow: 0 1rem 3rem rgba(0, 123, 255, 0.12);
  transform: translateY(-4px);
  border-color: var(--primary-color);
}
.custom-block-body { padding: 32px; }
.custom-block-image { display: block; width: 100%; height: 220px; object-fit: cover; }

.progress { background: var(--border-color); height: 6px; border-radius: 4px; }
.progress-bar { background: var(--primary-color); }

.custom-icon { color: var(--primary-color); }

.custom-list { margin-bottom: 0; padding-left: 0; list-style: none; }
.custom-list-item { margin-top: 10px; margin-bottom: 10px; display: flex; align-items: flex-start; }
.custom-list-item i { color: var(--primary-color); margin-right: 10px; margin-top: 3px; flex-shrink: 0; }

.custom-text-box {
  background: var(--white-color);
  border-radius: var(--border-radius-medium);
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
  padding: 36px;
}
.custom-text-box-icon {
  background: var(--accent-color);
  border-radius: 50%;
  color: var(--primary-color);
  font-size: 22px;
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  display: inline-block;
  margin-bottom: 16px;
}

.avatar-image {
  border-radius: 50%;
  width: 65px;
  height: 65px;
  object-fit: cover;
  border: 3px solid var(--primary-color);
}

.custom-btn {
  background: var(--primary-color);
  border: 2px solid transparent;
  border-radius: var(--border-radius-large);
  color: var(--white-color);
  font-size: var(--btn-font-size);
  font-weight: 600;
  padding: 14px 30px;
  display: inline-block;
  transition: all 0.3s;
  font-family: var(--body-font-family);
}
.custom-btn:hover { background: var(--primary-dark); color: var(--white-color); }
.custom-border-btn { background: transparent; border: 2px solid var(--white-color); color: var(--white-color); }
.custom-border-btn:hover { background: var(--white-color); color: var(--primary-color); }

.navbar-expand-lg .navbar-nav .nav-link.custom-btn {
  background: var(--primary-color);
  color: var(--white-color);
  border-radius: 30px;
  margin-top: 8px;
  padding: 10px 24px;
}
.navbar-expand-lg .navbar-nav .nav-link.custom-btn:hover { background: var(--primary-dark); color: var(--white-color); }

.navbar {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  z-index: 999;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.navbar-brand {
  color: var(--primary-color);
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}
.navbar-brand img { width: 42px; height: auto; }
.navbar-brand small { color: var(--secondary-color); font-size: 11px; display: block; font-weight: 400; line-height: 1.3; }
.navbar-expand-lg .navbar-nav .nav-link { margin-right: 0; margin-left: 0; padding: 22px 18px; font-size: 15px; font-weight: 500; }
.navbar-nav .nav-link { display: inline-block; color: var(--dark-color); font-size: var(--p-font-size); font-weight: 500; position: relative; padding-top: 15px; padding-bottom: 15px; transition: color 0.3s; }
.navbar-nav .nav-link.active, .navbar-nav .nav-link:hover { color: var(--primary-color); }
.navbar-toggler { border-color: var(--primary-color); border-radius: 8px; }

.site-header { background: var(--primary-color); padding: 10px 0; }
.site-header p, .site-header a { color: rgba(255,255,255,0.85); font-size: 13px; margin: 0; }
.site-header a:hover { color: var(--white-color); }
.social-icon li { list-style: none; display: inline-block; }
.social-icon-link { color: rgba(255,255,255,0.8); font-size: 16px; display: inline-block; width: 30px; height: 30px; text-align: center; line-height: 30px; border-radius: 50%; transition: all 0.3s; }
.social-icon-link:hover { background: rgba(255,255,255,0.2); color: var(--white-color); }

.hero-section { position: relative; min-height: 100vh; display: flex; align-items: center; }
.hero-section-full-height { min-height: 100vh; }
.hero-slide-item { position: relative; min-height: 100vh; background-size: cover; background-position: center; display: flex; align-items: flex-end; }
.hero-slide-item::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,60,130,0.7) 0%, rgba(0,150,200,0.4) 100%); }
.hero-slide-item-1 { background: linear-gradient(135deg, #003366 0%, #0096c7 50%, #48cae4 100%); }
.hero-slide-item-2 { background: linear-gradient(135deg, #004e92 0%, #007bff 50%, #00b4d8 100%); }
.hero-slide-item-3 { background: linear-gradient(135deg, #005c97 0%, #363795 50%, #0096c7 100%); }
.carousel-caption { position: relative; bottom: auto; left: auto; right: auto; top: 50%; transform: translateY(-50%); text-align: left; padding: 60px; }
.carousel-caption h1 { font-size: 56px; font-weight: 800; color: var(--white-color); line-height: 1.3; text-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.carousel-caption p { color: rgba(255,255,255,0.9); font-size: 20px; max-width: 600px; }
.carousel-control-prev-icon, .carousel-control-next-icon { width: 40px; height: 40px; background-color: rgba(0,123,255,0.5); border-radius: 50%; background-size: 60%; }

.featured-block { text-align: center; padding: 36px 24px; border-radius: var(--border-radius-medium); background: var(--white-color); border: 1px solid var(--border-color); transition: all 0.3s; text-decoration: none; display: block; }
.featured-block:hover { border-color: var(--primary-color); box-shadow: 0 8px 30px rgba(0,123,255,0.12); transform: translateY(-3px); text-decoration: none; }
.featured-icon { font-size: 48px; margin-bottom: 16px; display: block; }
.featured-block-text { color: var(--dark-color); font-size: 16px; font-weight: 600; margin: 0; }
.featured-block-text strong { color: var(--primary-color); }

.counter-thumb { margin-bottom: 20px; }
.counter-number { font-size: 48px; font-weight: 800; color: var(--primary-color); line-height: 1; }
.counter-number-text { font-size: 28px; color: var(--primary-color); }
.counter-text { font-size: 14px; color: var(--p-color); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

.about-image { border-radius: var(--border-radius-medium); box-shadow: 0 8px 40px rgba(0,0,0,0.08); width: 100%; height: 420px; object-fit: cover; }
.about-section .row { align-items: center; }
.about-section .col-lg-6:first-child img { width: 100%; border-radius: var(--border-radius-medium); box-shadow: 0 8px 40px rgba(0,0,0,0.1); height: 400px; object-fit: cover; }

.service-detail-card { border-radius: var(--border-radius-medium); overflow: hidden; background: var(--white-color); border: 1px solid var(--border-color); transition: all 0.35s; }
.service-detail-card:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(0,123,255,0.12); border-color: var(--primary-color); }
.service-detail-card .card-img-top { height: 200px; object-fit: cover; width: 100%; }
.service-detail-card .card-body { padding: 28px; }
.service-detail-card .card-title { font-size: 20px; font-weight: 700; color: var(--dark-color); margin-bottom: 12px; }
.service-detail-card .card-text { color: var(--p-color); font-size: 14px; line-height: 1.8; }

.case-block-wrap { border-radius: var(--border-radius-medium); overflow: hidden; background: var(--white-color); border: 1px solid var(--border-color); transition: all 0.3s; }
.case-block-wrap:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.case-image { height: 200px; object-fit: cover; width: 100%; display: block; }
.case-block-body { padding: 24px; }
.case-category { background: var(--accent-color); color: var(--primary-color); font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 20px; display: inline-block; margin-bottom: 10px; }

.search-form .form-control { border-radius: var(--border-radius-large); border: 1px solid var(--border-color); padding: 12px 18px; font-size: 14px; font-family: var(--body-font-family); }
.search-form .btn { border-radius: var(--border-radius-large); background: var(--primary-color); color: var(--white-color); border: none; padding: 10px 20px; }
.category-block-link { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border-color); color: var(--p-color); font-size: 14px; transition: color 0.3s; }
.category-block-link:hover { color: var(--primary-color); text-decoration: none; }
.category-block-link .badge { background: var(--accent-color); color: var(--primary-color); font-size: 12px; padding: 3px 10px; border-radius: 20px; }
.tags-block-link { display: inline-block; padding: 5px 14px; margin: 4px 2px; background: var(--section-bg-color); border: 1px solid var(--border-color); border-radius: 20px; color: var(--p-color); font-size: 13px; transition: all 0.3s; }
.tags-block-link:hover { background: var(--primary-color); color: var(--white-color); border-color: var(--primary-color); text-decoration: none; }

.news-block-top { position: relative; }
.news-block-top img { border-radius: var(--border-radius-medium); width: 100%; height: 280px; object-fit: cover; }
.news-category-block { position: absolute; bottom: 16px; left: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.news-category-block-link { background: var(--primary-color); color: var(--white-color); font-size: 11px; font-weight: 600; padding: 4px 12px; border-radius: 20px; transition: background 0.3s; }
.news-category-block-link:hover { background: var(--primary-dark); color: var(--white-color); text-decoration: none; }
.news-block-date, .news-block-author, .news-block-comment { font-size: 13px; color: var(--p-color); }
.news-block-title-link { color: var(--dark-color); font-size: 20px; font-weight: 700; transition: color 0.3s; line-height: 1.4; }
.news-block-title-link:hover { color: var(--primary-color); text-decoration: none; }
.news-block-two-col-image-wrap img { width: 90px; height: 70px; object-fit: cover; border-radius: var(--border-radius-small); }

.cta-section { background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); color: var(--white-color); }
.cta-section h2 { color: var(--white-color); font-size: 36px; }
.cta-section a.me-4 { background: var(--white-color); color: var(--primary-color); padding: 14px 28px; border-radius: 30px; font-weight: 600; display: inline-block; transition: all 0.3s; }
.cta-section a.me-4:hover { background: var(--primary-dark); color: var(--white-color); text-decoration: none; }

.testimonial-section { background: var(--section-bg-color); }
.carousel-title { font-size: 18px; font-weight: 600; color: var(--dark-color); line-height: 1.6; }
.carousel-name { font-size: 14px; color: var(--p-color); }
.carousel-name-title { font-weight: 700; color: var(--primary-color); }

.contact-info-wrap h2 { margin-bottom: 24px; }
.contact-image-wrap img { width: 80px; height: 80px; object-fit: cover; border-radius: 50%; border: 3px solid var(--primary-color); }
.contact-info h5 { color: var(--dark-color); font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.contact-info p, .contact-info a { font-size: 14px; color: var(--p-color); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.contact-info a:hover { color: var(--primary-color); }
.contact-form-wrap { background: var(--white-color); border-radius: var(--border-radius-medium); border: 1px solid var(--border-color); padding: 40px; }
.contact-form-wrap h2 { font-size: 28px; margin-bottom: 8px; }
.contact-form-wrap .form-control { border-radius: var(--border-radius-small); border: 1px solid var(--border-color); padding: 12px 16px; font-size: 14px; font-family: var(--body-font-family); margin-bottom: 16px; }
.contact-form-wrap .form-control:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(0,123,255,0.1); }

.site-footer { background: var(--site-footer-bg-color); padding: 60px 0 0; }
.site-footer h5 { color: var(--white-color); font-size: 16px; font-weight: 700; margin-bottom: 20px; }
.site-footer p, .site-footer a { color: rgba(255,255,255,0.65); font-size: 14px; line-height: 2; }
.site-footer a:hover { color: var(--white-color); }
.site-footer-bottom { background: rgba(0,0,0,0.2); padding: 20px 0; margin-top: 40px; }
.site-footer-bottom p, .site-footer-bottom a { color: rgba(255,255,255,0.5); font-size: 13px; }
.copyright-text { margin: 0; }

.appointment-form-wrap { background: var(--white-color); border-radius: var(--border-radius-medium); border: 1px solid var(--border-color); padding: 40px; box-shadow: 0 4px 30px rgba(0,0,0,0.06); }
.appointment-form-wrap h2 { font-size: 28px; margin-bottom: 6px; }
.appointment-form-wrap .form-control { border-radius: var(--border-radius-small); border: 1px solid var(--border-color); padding: 12px 16px; font-size: 14px; font-family: var(--body-font-family); margin-bottom: 14px; }
.appointment-form-wrap .form-control:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(0,123,255,0.1); }

@media (max-width: 991px) {
  h1 { font-size: 40px; }
  h2 { font-size: 32px; }
  .carousel-caption h1 { font-size: 38px; }
  .carousel-caption { padding: 30px; }
  .navbar-expand-lg .navbar-nav .nav-link { padding: 14px 16px; }
}
@media (max-width: 767px) {
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  .carousel-caption h1 { font-size: 28px; }
  .carousel-caption p { font-size: 16px; }
  .site-header .col-lg-8 { flex-direction: column; gap: 6px; }
  .contact-form-wrap, .appointment-form-wrap { padding: 24px; }
}

.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }

.img-placeholder { background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%); display: flex; align-items: center; justify-content: center; color: var(--primary-color); font-size: 48px; }

.counter-thumb-about { background: var(--accent-color); border-radius: var(--border-radius-medium); padding: 24px; text-align: center; margin-bottom: 16px; }
.counter-thumb-about .counter-number { font-size: 36px; }
.counter-thumb-about .counter-text { font-size: 13px; margin-top: 4px; }

.service-icon-circle { width: 72px; height: 72px; border-radius: 50%; background: var(--accent-color); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 32px; color: var(--primary-color); transition: all 0.3s; }
.featured-block:hover .service-icon-circle { background: var(--primary-color); color: var(--white-color); }