/* ====================
   上海松江空调制冷服务中心 - 全站公共样式
   深蓝 #1a365d + 浅灰 #f7f8fa 商务?   含中文注?==================== */

/* ---------- 颜色变量 ---------- */
:root {
  --primary: #1a365d;       /* 深蓝主色 */
  --primary-light: #2c5282; /* 中蓝 */
  --secondary: #f7f8fa;      /* 浅灰背景 */
  --accent: #3182ce;         /* 亮蓝点缀 */
  --text-dark: #1a202c;      /* 深灰文字 */
  --text-light: #718096;    /* 浅灰文字 */
  --white: #ffffff;
  --shadow: 0 4px 6px rgba(0,0,0,0.1);
  --radius: 8px;
}

/* ---------- 全局重置 ---------- */
* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text-dark);
  background: var(--white);
}
img { max-width: 100%; height: auto; }

/* ---------- 导航?---------- */
.top-nav {
  background: #1a365d; /* 深蓝背景，如需改色改这?*/
}
.navbar-brand {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 1px;
}
.navbar-dark .navbar-nav .nav-link {
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: #63b3ed;
}
.navbar-toggler { border-color: rgba(255,255,255,0.3); }

/* ---------- Hero 轮播图区?---------- */
.hero-section {
  background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
  min-height: 480px;
  display: flex;
  align-items: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero-section::after {
  content: '';
  position: absolute;
  right: 0; top: 0;
  width: 50%; height: 100%;
  background: url(https://placehold.co/800x600/1a365d/ffffff?text=) center/cover no-repeat;
  opacity: 0.15;
}
.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.3;
}
.hero-subtitle {
  font-size: 1.15rem;
  opacity: 0.9;
  margin: 12px 0 24px;
}
.hero-btn {
  background: #3182ce;
  color: #fff;
  padding: 12px 32px;
  border-radius: 50px;
  font-size: 1.05rem;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.2s;
}
.hero-btn:hover { background: #2c5282; color: #fff; transform: translateY(-2px); }

/* 轮播控件 */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(26,54,93,0.6);
  border-radius: 50%;
  width: 40px; height: 40px;
}
.carousel-caption {
  background: rgba(26,54,93,0.75);
  border-radius: var(--radius);
  padding: 20px;
  bottom: 60px;
}

/* ---------- 通用区块 ---------- */
.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 8px;
}
.section-sub {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 40px;
}
.section-py { padding: 60px 0; }
.bg-light-custom {
  background: var(--secondary);
}

/* ---------- 服务卡片 ---------- */
.service-card {
  border: 1px solid #e8e8e8;
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: box-shadow 0.3s, transform 0.3s;
  background: var(--white);
  cursor: pointer;
}
.service-card:hover {
  box-shadow: 0 8px 24px rgba(26,54,93,0.15);
  transform: translateY(-4px);
}
.service-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, #1a365d, #3182ce);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.6rem;
  color: #fff;
}
.service-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

/* ---------- 案例卡片 ---------- */
.case-card {
  border: 1px solid #e8e8e8;
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.3s;
  background: var(--white);
}
.case-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.case-card img { width: 100%; height: 180px; object-fit: cover; }
.case-body { padding: 16px; }
.case-tag {
  display: inline-block;
  background: #e8f4fd;
  color: #3182ce;
  font-size: 0.75rem;
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.case-body h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}
.case-body p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.5;
}
.case-filter-btn {
  border: 1.5px solid #1a365d;
  background: transparent;
  color: #1a365d;
  border-radius: 50px;
  padding: 6px 20px;
  cursor: pointer;
  transition: all 0.2s;
  margin: 4px;
  font-size: 0.9rem;
}
.case-filter-btn:hover,
.case-filter-btn.active {
  background: #1a365d;
  color: #fff;
}

/* ---------- 优势区块 ---------- */
.feature-icon {
  width: 56px; height: 56px;
  background: #e8f4fd;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.4rem;
}
.feature-card h5 {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 6px;
}
.feature-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0;
}

/* ---------- FAQ 折叠 ---------- */
.faq-item {
  border: 1px solid #e8e8e8;
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--white);
}
.faq-question {
  background: var(--white);
  padding: 16px 20px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  transition: background 0.2s;
}
.faq-question:hover { background: #f0f4f8; }
.faq-arrow {
  transition: transform 0.3s;
  font-size: 1.2rem;
  color: var(--accent);
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: var(--secondary);
}
.faq-answer-inner {
  padding: 14px 20px;
  font-size: 0.92rem;
  color: var(--text-dark);
  line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 400px; }

/* ---------- 联系表单 ---------- */
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid #e8e8e8;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}
.contact-info-item:last-child { margin-bottom: 0; }
.info-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, #1a365d, #3182ce);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
  margin-right: 12px;
}
.info-text h6 {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0 0 2px;
  font-weight: 400;
}
.info-text p {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin: 0;
  font-weight: 600;
}

.form-control, .form-select {
  border: 1.5px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.92rem;
  transition: border-color 0.2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(49,130,206,0.1);
}
.btn-primary-custom {
  background: #1a365d;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 36px;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s;
  cursor: pointer;
}
.btn-primary-custom:hover { background: #2c5282; color: #fff; }

/* ---------- 评价轮播 ---------- */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid #e8e8e8;
}
.testimonial-stars { color: #f6c90e; font-size: 1.1rem; margin-bottom: 10px; }
.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 14px;
}
.testimonial-author {
  font-size: 0.88rem;
  color: var(--text-light);
  font-weight: 600;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: #1a365d;
  color: rgba(255,255,255,0.85);
  padding: 40px 0 20px;
}
.site-footer h5 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.site-footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer a:hover { color: #63b3ed; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
  margin-top: 24px;
  font-size: 0.85rem;
  text-align: center;
  color: rgba(255,255,255,0.5);
}

/* ---------- 时间线（关于我们?---------- */
.timeline {
  position: relative;
  padding-left: 24px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #1a365d, #3182ce);
}
.timeline-item {
  position: relative;
  padding: 0 0 28px 24px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -27px; top: 4px;
  width: 12px; height: 12px;
  background: #1a365d;
  border-radius: 50%;
  border: 3px solid #fff;
}
.timeline-year {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.timeline-text {
  font-size: 0.92rem;
  color: var(--text-dark);
  line-height: 1.5;
}

/* ---------- 团队卡片 ---------- */
.team-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 16px;
  border: 1px solid #e8e8e8;
  transition: box-shadow 0.3s;
}
.team-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  border: 3px solid #e8f4fd;
}
.team-card h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.team-card .title {
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 8px;
}
.team-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0;
}

/* ---------- 证书展示 ---------- */
.cert-card {
  text-align: center;
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid #e8e8e8;
}
.cert-card img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  margin-bottom: 10px;
}
.cert-card p {
  font-size: 0.82rem;
  color: var(--text-light);
  margin: 0;
}

/* ---------- 地图占位 ---------- */
.map-placeholder {
  background: #e8f4fd;
  border-radius: var(--radius);
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1rem;
  border: 1px dashed #c3dff5;
}

/* ---------- 响应式调?---------- */
@media (max-width: 768px) {
  .hero-title { font-size: 1.8rem; }
  .hero-section { min-height: 360px; }
  .section-title { font-size: 1.5rem; }
  .carousel-caption { display: none; }
  .feature-card { margin-bottom: 20px; }
  .contact-info-card { margin-bottom: 24px; }
}