/* ============ 马鞍山科润电机维修厂 · 全局样式 ============ */
:root {
  --primary: #0a5ec8;
  --primary-dark: #073f8c;
  --accent: #f5a623;
  --dark: #10243e;
  --text: #333;
  --muted: #666;
  --light: #f5f7fa;
  --line: #e3e8ef;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(10, 60, 120, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "微软雅黑", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ============ 顶部信息条 ============ */
.topbar {
  background: var(--dark);
  color: #cdd7e4;
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 38px;
}
.topbar a:hover { color: var(--white); }

/* ============ 头部 Logo + 热线 ============ */
.header-main {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand .logo {
  width: 58px; height: 58px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand h1 { font-size: 26px; color: var(--dark); letter-spacing: 1px; }
.brand p { font-size: 13px; color: var(--muted); }
.hotline { display: flex; align-items: center; gap: 14px; }
.hotline .icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(10, 94, 200, 0.1);
  display: flex; align-items: center; justify-content: center;
}
.hotline .label { font-size: 13px; color: var(--muted); }
.hotline .nums { display: flex; flex-direction: column; gap: 2px; }
.hotline .num { font-size: 20px; font-weight: 700; color: var(--primary); }
.hotline .manager { font-size: 13px; font-weight: 400; color: var(--muted); text-align: center; }

/* ============ 移动端首屏：公司介绍 + 联系方式（默认隐藏，仅手机显示） ============ */
.mobile-first { display: none; background: var(--light); border-bottom: 1px solid var(--line); }
.mf-intro { padding: 24px 0 6px; }
.mf-contact { padding: 0 0 24px; }
.mf-badge {
  display: inline-block; padding: 2px 14px; border-radius: 20px;
  background: var(--primary); color: #fff; font-size: 13px; margin-bottom: 12px;
}
.mf-intro h2 { font-size: 22px; color: var(--dark); margin-bottom: 10px; }
.mf-intro p { font-size: 15px; color: var(--muted); }
.mf-contact .mf-phone {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; background: var(--primary); color: #fff;
  padding: 16px 20px; border-radius: 10px; margin-bottom: 14px;
}
.mf-contact .mf-phone span { font-size: 13px; opacity: 0.85; }
.mf-contact .mf-phone strong { font-size: 22px; letter-spacing: 1px; }
.mf-row { display: flex; gap: 12px; font-size: 14px; padding: 6px 0; }
.mf-row .k { color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.mf-row span:last-child { color: var(--text); word-break: break-all; }
.mf-manager { text-align: center; font-size: 13px; color: var(--muted); margin: 0 0 14px; }

/* ============ 导航 ============ */
.nav { background: var(--primary); position: sticky; top: 0; z-index: 100; }
.nav ul { display: flex; }
.nav li { position: relative; }
.nav a {
  display: block; padding: 15px 26px; color: var(--white);
  font-size: 16px; transition: background 0.2s;
}
.nav a:hover, .nav a.active { background: var(--primary-dark); }
.hamburger { display: none; }

/* ============ Hero：宣传图轮播 ============ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--dark);
}

/* ============ 区块通用 ============ */
.section { padding: 70px 0; }
.section .section-head { text-align: center; margin-bottom: 44px; }
.section .en { color: #b7c5d8; font-size: 15px; letter-spacing: 3px; text-transform: uppercase; }
.section .zh { font-size: 32px; color: var(--dark); margin-top: 4px; }
.section .zh .hl { color: var(--primary); }
.section .divider {
  width: 60px; height: 3px; background: var(--accent);
  margin: 14px auto 0; border-radius: 2px;
}

/* ============ 维修区域范围 ============ */
.area-box {
  max-width: 920px; margin: 0 auto;
  background: #eef4fc; border: 1px solid #d6e4f5;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 26px 30px;
}
.area-box p {
  font-size: 17px; color: #333; line-height: 1.9;
}

/* ============ 首页维修案例 ============ */
.home-cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.hc {
  border-radius: var(--radius); overflow: hidden;
  background: var(--white); border: 1px solid var(--line);
  box-shadow: var(--shadow); margin: 0; transition: transform 0.2s;
}
.hc:hover { transform: translateY(-4px); }
.hc img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.hc figcaption { padding: 10px 12px; font-size: 14px; color: var(--dark); text-align: center; }

/* ============ 事实块 ============ */
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fact-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow); transition: transform 0.2s;
}
.fact-card:hover { transform: translateY(-4px); }
.fact-card .k { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.fact-card .v { font-size: 18px; color: var(--dark); font-weight: 600; word-break: break-all; }
.fact-card .v small { font-weight: 400; color: var(--muted); }

/* ============ 单栏事实块（关于页） ============ */
.fact-table {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--white);
}
.fact-table .row { display: flex; border-bottom: 1px solid var(--line); }
.fact-table .row:last-child { border-bottom: none; }
.fact-table .k {
  width: 180px; flex-shrink: 0; background: var(--light);
  padding: 14px 18px; font-weight: 600; color: var(--dark);
}
.fact-table .v { padding: 14px 18px; flex: 1; }

/* ============ 关于页 · 自然段落介绍 ============ */
.profile { max-width: 900px; margin: 0 auto; }
.profile-block { margin-bottom: 46px; }
.profile-block:last-child { margin-bottom: 0; }
.profile-title {
  display: flex; align-items: center; gap: 12px;
  font-size: 22px; color: var(--dark); margin-bottom: 16px;
}
.profile-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--primary); color: #fff; font-size: 16px; font-weight: 700;
  flex-shrink: 0;
}
.profile-block p {
  font-size: 16px; color: #444; line-height: 1.9;
  margin-bottom: 14px; text-align: justify;
}
.profile-block p:last-child { margin-bottom: 0; }
.process-list {
  margin: 0 0 14px; padding-left: 22px;
}
.process-list li {
  font-size: 16px; color: #444; line-height: 1.9;
  margin-bottom: 10px; text-align: justify;
}
.process-list li:last-child { margin-bottom: 0; }
.process-list li::marker { color: var(--primary); font-weight: 700; }

/* ============ 宣传图轮播 ============ */
.banner-slider {
  position: relative;
  max-width: 1200px;
  margin: 40px auto;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.banner-track { position: relative; }
.banner-slide { display: none; }
.banner-slide.active { display: block; }
.banner-slide img { width: 100%; height: auto; display: block; }
.banner-dots {
  position: absolute; bottom: 16px; left: 0; right: 0;
  text-align: center; z-index: 5;
}
.banner-dots .dot {
  display: inline-block; width: 10px; height: 10px; margin: 0 5px;
  border-radius: 50%; background: rgba(255,255,255,0.6);
  cursor: pointer; transition: all 0.3s;
  vertical-align: middle;
}
.banner-dots .dot.active { background: var(--accent); width: 26px; border-radius: 5px; }
.hero .banner-slider { margin: 0; width: 100%; max-width: 100%; border-radius: 0; box-shadow: none; }

/* ============ 服务网格 ============ */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-card {
  position: relative;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 20px;
  text-align: left; overflow: hidden;
  transition: all 0.25s;
}
.service-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-4px); }
.service-card .idx {
  position: absolute; right: 16px; top: 10px;
  font-size: 44px; font-weight: 700; line-height: 1;
  color: rgba(10, 94, 200, 0.10);
}
.service-card h3 { font-size: 17px; color: var(--dark); margin-bottom: 8px; }
.service-card p { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ============ 优势 ============ */
.advantages { background: var(--light); }
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.adv .num { font-size: 34px; font-weight: 700; color: var(--primary); }
.adv .t { font-size: 17px; color: var(--dark); margin-top: 4px; }
.adv .d { font-size: 14px; color: var(--muted); }

/* ============ FAQ ============ */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 8px; margin-bottom: 14px; overflow: hidden;
}
.faq-item summary {
  padding: 18px 22px; cursor: pointer; font-weight: 600;
  color: var(--dark); font-size: 16px; list-style: none; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%;
  transform: translateY(-50%); font-size: 22px; color: var(--primary);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .a { padding: 0 22px 18px; color: var(--muted); font-size: 15px; }

/* ============ 案例 ============ */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--white); transition: all 0.2s;
}
.case-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.case-card .cover {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
}
.case-card .body { padding: 20px; }
.case-card .tag { font-size: 12px; color: var(--primary); }
.case-card h3 { font-size: 18px; color: var(--dark); margin: 6px 0; }
.case-card p { font-size: 14px; color: var(--muted); }

/* ============ CTA / 联系 ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.contact-info .ci {
  display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line);
}
.contact-info .ci .ic {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 10px;
  background: rgba(10, 94, 200, 0.1); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.contact-info .ci .t { font-size: 14px; color: var(--muted); }
.contact-info .ci .d { font-size: 17px; color: var(--dark); font-weight: 600; }
.contact-info .ci .d + .d { margin-top: 4px; }
.map-container {
  position: relative; align-self: start; min-height: 320px;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--light);
}
.map-container iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0; display: block;
}
.map-container img {
  width: 100%; height: auto; display: block;
}
.wechat-qr { width: 168px; height: 168px; margin-top: 6px; border-radius: 8px; border: 1px solid var(--line); }
.footer-qr { width: 120px; height: 120px; margin-top: 10px; border-radius: 6px; display: block; }

/* ============ 页脚 ============ */
.footer { background: var(--dark); color: #9fb0c4; padding: 50px 0 0; font-size: 14px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer h4 { color: var(--white); font-size: 17px; margin-bottom: 16px; }
.footer a { display: block; padding: 3px 0; }
.footer a:hover { color: var(--white); }
.footer .about-us p { margin-top: 10px; }
.footer .copy {
  margin-top: 40px; padding: 18px 0; text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1); font-size: 13px;
}

/* ============ 面包屑/页头 ============ */
.page-banner {
  background: linear-gradient(120deg, #0a4d9e, #1682e0);
  color: var(--white); padding: 56px 0; text-align: center;
}
.page-banner h2 { font-size: 34px; }
.page-banner p { color: #dceaff; margin-top: 8px; }

/* ============ 响应式 ============ */
@media (max-width: 992px) {
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 768px) {
  .mobile-first { display: block; }
  /* 头部：手机端紧凑布局 */
  .header-main .container { padding-top: 12px; padding-bottom: 12px; }
  .brand { gap: 10px; }
  .brand .logo { width: 42px; height: 42px; }
  .brand h1 { font-size: 17px; letter-spacing: 0; }
  .brand p { font-size: 11px; }
  .hotline { gap: 6px; }
  .hotline .icon { display: none; }
  .hotline .label { display: none; }
  .hotline .nums { gap: 1px; }
  .hotline .num { font-size: 15px; }
  /* 首页（含移动端首屏联系方式）隐藏 header 热线，避免重复 */
  body:has(.mobile-first) .hotline { display: none; }
  /* 移动端首屏文字 */
  .mf-intro p { font-size: 14px; line-height: 1.7; }
  .mf-row { font-size: 13px; padding: 5px 0; }
  .nav ul { display: none; flex-direction: column; }
  .nav ul.open { display: flex; }
  .hamburger { display: block; padding: 2px 8px; color: var(--primary); font-size: 24px; cursor: pointer; line-height: 1; }
  .facts-grid, .services-grid, .adv-grid, .cases-grid { grid-template-columns: 1fr; }
  .home-cases { grid-template-columns: repeat(2, 1fr); }
  .fact-table .row { flex-direction: column; }
  .fact-table .k { width: 100%; }
}