/* ============================================================
   MATRIX PR 经纬公关 官网复刻 - 样式表
   数值按原站 1080 宽视口实测：主色 #fb0434 / 按钮蓝 #34339b
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --red: #fb0434;
  --blue: #34339b;
  --text: #323940;
  --gray: #62686f;
  --line: #e5e5e5;
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", sans-serif;
  color: var(--text);
  background: #fff;
  font-size: 16px;
  line-height: 1.7;
}

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

.container { max-width: 885px; margin: 0 auto; padding: 0 20px; }

/* ---------------- 顶部导航（实测：高约105px，logo 165，右侧两行：导航+蓝色按钮） ---------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 105px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,.08);
  z-index: 999;
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 105px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { width: 165px; height: auto; }
.brand-slogan {
  color: var(--red);
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}
.brand-slogan .cities { font-weight: 400; }

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: block;
  padding: 2px 12px;
  font-size: 14.5px;
  font-weight: 600;
  color: #2f3c4d;
  cursor: pointer;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--red); }
.nav-link .arrow {
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 4px;
  vertical-align: middle;
}
.dropdown {
  position: absolute;
  top: 100%; left: 0;
  min-width: 160px;
  background: #fff;
  border: 1px solid #f0f0f0;
  box-shadow: 0 6px 16px rgba(0,0,0,.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .2s ease;
  z-index: 1000;
}
.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  border-bottom: 1px solid #f5f5f5;
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { color: var(--red); background: #fff5f7; }

/* 热线按钮（实测：蓝底 #34339b 白字 16px 圆角 高40） */
.hotline-btn {
  display: inline-block;
  padding: 7px 22px;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 100px;
  white-space: nowrap;
}
.hotline-btn:hover { background: var(--blue-hover); }

main { padding-top: 105px; }

.nav-toggle { display: none; background: none; border: none; font-size: 24px; color: var(--red); cursor: pointer; }

/* ---------------- 首屏轮播（实测 1080x405，单张全宽轮换） ---------------- */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1080 / 405;
  overflow: hidden;
  background: #0b1e33;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .7s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #3a3a3a;
  font-size: 40px;
  cursor: pointer;
  z-index: 5;
  line-height: 1;
  text-shadow: 0 0 4px rgba(255,255,255,.6);
}
.hero-arrow.prev { left: 14px; }
.hero-arrow.next { right: 14px; }
.hero-arrow:hover { color: #000; }
.hero-dots {
  position: absolute;
  left: 0; right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 5;
}
.hero-dots i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  cursor: pointer;
}
.hero-dots i.active { background: #fff; }

/* ---------------- 通用区块（实测：标题44px红，副题20px） ---------------- */
.section { padding: 66px 0 70px; }
.section-head { text-align: center; margin-bottom: 46px; }
.section-title {
  color: var(--red);
  font-size: 44px;
  font-weight: 400;
  letter-spacing: 2px;
}
/* 除"服务领域"外的标题原站略小并带下划线 */
.section-title.underline {
  font-size: 35px;
  display: inline-block;
  border-bottom: 1px solid var(--red);
  padding-bottom: 8px;
}
.section-sub {
  display: inline-block;
  margin-top: 14px;
  color: var(--red);
  font-size: 20px;
  font-family: Georgia, "Times New Roman", serif;
}
.section-sub.plain {
  color: var(--gray);
  font-family: inherit;
  font-size: 20px;
}

/* ---------------- 服务领域（实测：图标100x100，标题28红，副行16红下划线） ---------------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card { text-align: center; }
.service-card .pic {
  display: block;
  width: 100px;
  height: 100px;
  margin: 0 auto 28px;
}
.service-card .pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-card h3 {
  color: var(--red);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
}
.service-card p {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.7;
  min-height: 54px;
}
.service-card p a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.service-card p a:hover { opacity: .8; }

/* ---------------- 作品案例（实测：图270正方形，标签蓝底白字圆角） ---------------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 18px;
}
.case-card { text-align: center; }
.case-card .pic {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.case-card .pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s, opacity .4s;
}
.case-card:hover .pic img { transform: scale(1.04); opacity: .9; }
.case-card .tag {
  display: inline-block;
  margin-top: 15px;
  height: 40px;
  line-height: 40px;
  padding: 0 24px;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 100px;
}
.case-card:hover .tag { background: #3b3ab2; }

/* ---------------- 整体解决方案（实测：图197x109，条目20红下划线，链接16） ---------------- */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 20px;
}
.solution-item { text-align: center; }
.solution-item .pic {
  width: 100%;
  aspect-ratio: 197 / 109;
  overflow: hidden;
}
.solution-item .pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.solution-item h3 {
  display: inline-block;
  margin-top: 20px;
  color: var(--red);
  font-size: 20px;
  font-weight: 700;
  border-bottom: 1px solid var(--red);
  padding-bottom: 4px;
}
.solution-item ul { margin-top: 12px; }
.solution-item ul a {
  display: inline-block;
  padding: 2px 0;
  color: var(--text);
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.solution-item ul a:hover { color: var(--red); }

/* ---------------- 客户与奖项 ---------------- */
.customers { text-align: center; }
.customers img { margin: 0 auto; max-width: 960px; width: 100%; }

/* ---------------- 经纬资讯（实测：缩略图80，标题26） ---------------- */
.news-list { max-width: 845px; margin: 0 auto; }
.news-item {
  display: flex;
  gap: 20px;
  padding: 22px 6px;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.news-item .thumb {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  overflow: hidden;
}
.news-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-item h3 { font-size: 26px; font-weight: 400; line-height: 1.35; }
.news-item h3 a:hover { color: var(--red); }
.news-item .date {
  margin-top: 6px;
  color: var(--red);
  font-size: 13px;
}
.news-item .excerpt {
  margin-top: 8px;
  color: var(--gray);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------------- 联系我们（实测：两图413x251，热线白字24px） ---------------- */
.contact {
  position: relative;
  color: #fff;
  padding: 56px 0 64px;
  background: linear-gradient(135deg, #4a4a4e 0%, #333336 55%, #454549 100%);
}
.contact .container { position: relative; }
.contact .section-title { color: #fff; letter-spacing: 6px; }
.contact .section-title.underline { border-color: #fff; }
.contact .section-sub { color: #fff; }
.contact-pics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 19px;
  margin: 34px auto 28px;
  max-width: 845px;
}
.contact-pics img { width: 100%; aspect-ratio: 413 / 251; object-fit: cover; }
.contact-addr {
  text-align: center;
  font-size: 15px;
  line-height: 2;
}
.contact-addr b { font-size: 16px; }
.contact-tel {
  margin-top: 22px;
  text-align: center;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 1px;
}

/* ---------------- 页脚 ---------------- */
.site-footer { background: #fff; padding: 56px 0 30px; }
.footer-top {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-logo { flex: 0 0 200px; }
.footer-logo img { width: 170px; }
.footer-cols { display: flex; gap: 90px; flex: 1; }
.footer-col h4 { font-size: 15px; margin-bottom: 14px; color: #222; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--gray); font-size: 14px; }
.footer-col a:hover { color: var(--red); }
.footer-center { text-align: center; padding: 30px 0 6px; }
.footer-center .tel { color: var(--red); font-size: 22px; font-weight: 700; }
.footer-center .addr { color: var(--red); font-size: 15px; margin-top: 6px; }
.footer-meta {
  text-align: center;
  color: #999;
  font-size: 13px;
  line-height: 2;
  margin-top: 14px;
}
.footer-meta a { color: #999; }
.footer-meta a:hover { color: var(--red); }

/* ---------------- 右侧悬浮按钮 ---------------- */
.float-btns {
  position: fixed;
  right: 14px;
  bottom: 20px;
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.float-btns button {
  width: 34px; height: 34px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 14px;
  border-radius: 3px;
}
.float-btns button:hover { background: var(--red); }

/* ================= 子页面 ================= */
.sub-page { padding: 50px 0 70px; }
.sub-page .page-title {
  text-align: center;
  color: var(--red);
  font-size: 30px;
  font-weight: 700;
}
.sub-page .page-sub {
  text-align: center;
  color: #555;
  font-size: 16px;
  margin-top: 14px;
}

/* 服务领域落地页 */
.fwly-block {
  display: grid;
  grid-template-columns: 1.9fr 1fr;
  gap: 26px;
  margin-top: 44px;
  align-items: stretch;
}
.fwly-block .pic img { width: 100%; height: 100%; object-fit: cover; }
.fwly-card {
  background: #e8edf3;
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.fwly-card p { color: #444; font-size: 15px; text-align: center; }
.fwly-card .tel { margin-top: 26px; color: var(--red); font-weight: 700; font-size: 19px; }
.fwly-card .more {
  margin-top: 22px;
  color: var(--red);
  font-weight: 700;
  font-size: 17px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.fwly-card .more:hover { opacity: .8; }

/* 行业案例页 */
.case-group { margin-top: 52px; }
.case-group .group-title {
  text-align: center;
  color: var(--red);
  font-size: 24px;
  font-weight: 700;
}
.case-group .group-meta {
  text-align: center;
  color: #666;
  font-size: 15px;
  margin-top: 10px;
}
.case-group .group-pics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}
.case-group .group-pics img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: opacity .3s;
}
.case-group .group-pics img:hover { opacity: .85; }

/* 整体解决方案页（zt2） */
.zt-block { margin-top: 54px; }
.zt-block .zt-name {
  text-align: center;
  color: var(--red);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 4px;
}
.zt-block .zt-items {
  text-align: center;
  color: #555;
  font-size: 17px;
  margin-top: 12px;
  letter-spacing: 1px;
}
.zt-block .zt-desc {
  max-width: 845px;
  margin: 20px auto 0;
  color: #444;
  font-size: 15px;
}
.zt-block .zt-pics {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  justify-content: center;
  flex-wrap: wrap;
}
.zt-block .zt-pics img { height: 150px; width: auto; object-fit: cover; }

/* 案例总览页 */
.cases-intro {
  text-align: center;
  color: var(--gray);
  margin-top: -30px;
  margin-bottom: 40px;
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 960px) {
  .brand-slogan { display: none; }
  .nav-link { padding: 5px 8px; font-size: 13px; }
  .hotline-btn { padding: 6px 12px; font-size: 13px; min-height: 34px; line-height: 20px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 16px; }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .solution-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { flex-direction: column; gap: 30px; }
  .footer-cols { gap: 40px; flex-wrap: wrap; }
  .fwly-block { grid-template-columns: 1fr; }
  .zt-block .zt-pics img { height: 110px; }
}

@media (max-width: 640px) {
  .header-inner { padding: 0 12px; }
  .brand-logo { width: 120px; height: 32px; }
  .nav { display: none; }
  .nav-toggle { display: block; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,.12);
    padding: 10px 0;
  }
  .hero { aspect-ratio: auto; height: 210px; }
  .service-grid, .case-grid, .solution-grid { grid-template-columns: 1fr; }
  .contact-pics { grid-template-columns: 1fr; }
  .section-title { font-size: 30px; }
  .section-title.underline { font-size: 26px; }
}
