/* 合晖保险经纪 - 站点样式 */
:root {
  --accent: #ff3253;
  --accent-dark: #e02042;
  --dark: #212121;
  --text: #111f2c;
  --muted: #6b7280;
  --bg-soft: #f6f7f9;
  --maxw: 1200px;
}

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

html { scroll-behavior: smooth; }

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

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

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ============ 顶部 ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eee;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .02);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 46px; height: auto; }
.brand-text { line-height: 1.25; white-space: nowrap; }
.brand-text b {
  display: block;
  font-size: 23px;
  color: var(--dark);
  letter-spacing: 1px;
}
.brand-text i {
  display: block;
  font-style: normal;
  font-size: 15px;
  color: var(--accent);
  font-family: "FZShuTi", "STXingkai", "Microsoft YaHei", cursive;
}

.nav { display: flex; align-items: center; }
.nav a {
  display: block;
  padding: 0 26px;
  height: 80px;
  line-height: 80px;
  font-size: 16px;
  color: #2b2b2b;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--accent); }
.nav a.active { background: var(--accent); color: #fff; }

.nav-toggle {
  display: none;
  border: none;
  background: none;
  font-size: 26px;
  color: var(--dark);
  cursor: pointer;
  padding: 6px 10px;
}

/* ============ 轮播 Banner ============ */
.hero {
  position: relative;
  height: 480px;
  overflow: hidden;
  background: #111;
}
.hero .slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.1s ease, transform 6s ease;
}
.hero .slide.active { opacity: 1; transform: scale(1); }
.hero-single { height: 400px; }
.hero-single .slide { opacity: 1; transform: none; }

.hero-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.hero-dots span {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.hero-dots span.on { background: #fff; transform: scale(1.15); }

/* ============ 通用板块 ============ */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-soft); }
.sec-title {
  text-align: center;
  font-size: 30px;
  color: var(--dark);
  font-weight: 700;
  letter-spacing: 1px;
}
.sec-title.center-mark::before,
.sec-title.center-mark::after {
  content: "—";
  color: var(--muted);
  font-weight: 400;
  margin: 0 14px;
}
.sec-line {
  width: 56px; height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 14px auto 0;
}
.sec-sub {
  max-width: 760px;
  margin: 26px auto 0;
  text-align: justify;
  color: #3d4852;
  font-size: 17px;
  text-indent: 2em;
}

/* 首页大字标语 */
.lead {
  text-align: center;
  font-size: 30px;
  color: #000;
  font-weight: 700;
  margin-bottom: 22px;
}

/* ============ 产品卡片 ============ */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-top: 46px;
}
.prod-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.prod-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(17, 31, 44, .12);
}
.prod-card a { display: block; }
.prod-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.prod-body { padding: 18px 18px 22px; flex: 1; display: flex; flex-direction: column; }
.prod-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  min-height: 46px;
}
.prod-desc { font-size: 14px; color: var(--muted); line-height: 1.9; }
.prod-more {
  margin-top: auto;
  padding-top: 14px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}
.prod-card.mute img { filter: grayscale(.85); opacity: .55; }

/* ============ 核心业务 ============ */
.biz-list {
  max-width: 820px;
  margin: 34px auto 0;
}
.biz-list li {
  position: relative;
  padding: 12px 0 12px 42px;
  font-size: 18px;
  color: var(--text);
}
.biz-list li::before {
  content: "";
  position: absolute;
  left: 12px; top: 24px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

/* ============ 客户服务 ============ */
.svc-list { max-width: 820px; margin: 34px auto 0; }
.svc-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px dashed #e5e7eb;
  font-size: 18px;
}
.svc-item:last-child { border-bottom: none; }
.svc-item .ico {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.svc-item .lbl { color: var(--muted); margin-right: 6px; }
.svc-item a { color: var(--accent); }

/* ============ 公告&信息 ============ */
.notice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
}
.notice-grid img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #eee;
  box-shadow: 0 8px 22px rgba(17, 31, 44, .08);
}
.notice-bar {
  margin-top: 44px;
  background: #fff;
  border-left: 4px solid var(--accent);
  padding: 14px 20px;
  font-size: 16px;
  color: var(--text);
  box-shadow: 0 4px 14px rgba(17, 31, 44, .07);
  display: flex;
  align-items: center;
  gap: 12px;
}
.notice-bar .tag {
  flex: 0 0 auto;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  padding: 2px 10px;
  border-radius: 3px;
}
.notice-bar .txt { overflow: hidden; white-space: nowrap; }
.notice-bar .txt span {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 18s linear infinite;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ============ 页脚 ============ */
.site-footer {
  position: relative;
  background: #1c2430 url("../assets/images/footer-bg.jpg") center / cover no-repeat;
  padding: 260px 0 26px;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,.86) 38%, rgba(255,255,255,.94) 100%);
}
.footer-inner { position: relative; text-align: center; font-size: 14px; color: #333; }
.footer-line { margin: 6px 0; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.footer-line img { width: 18px; height: 18px; display: inline-block; }
.footer-line a:hover { color: var(--accent); }
.footer-copy { margin-top: 12px; color: #555; }

/* ============ 响应式 ============ */
@media (max-width: 991px) {
  .header-inner { height: 66px; }
  .nav {
    position: absolute;
    top: 66px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid #eee;
    display: none;
    box-shadow: 0 10px 22px rgba(0,0,0,.08);
  }
  .nav.open { display: flex; }
  .nav a { height: 50px; line-height: 50px; padding: 0 26px; }
  .nav a.active { background: none; color: var(--accent); }
  .nav-toggle { display: block; }
  .hero { height: 320px; }
  .hero-single { height: 260px; }
  .section { padding: 48px 0; }
  .lead, .sec-title { font-size: 23px; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .notice-grid { grid-template-columns: 1fr; gap: 20px; }
  .site-footer { padding-top: 150px; }
}
@media (max-width: 560px) {
  .prod-grid { grid-template-columns: 1fr; }
  .hero { height: 240px; }
  .brand-text b { font-size: 19px; }
  .brand-text i { font-size: 13px; }
  .biz-list li, .svc-item { font-size: 16px; }
}
