/* 上海福建人首页 · 现代视觉层（配合 themes.css 三套主题） */

/* 顶部细条 */
.head {
  background: var(--theme-ink, #0f1c2e) !important;
  border-bottom: 0 !important;
}
.head .head-left span,
.head .head-right span {
  color: rgba(255,255,255,.78) !important;
}

.header .login img {
  max-height: 60px;
  width: auto;
  border-radius: 6px;
}
.header .search button {
  background: var(--theme-sea, #1a4a5c) !important;
  color: #fff !important;
}

.menu {
  background: var(--theme-nav, linear-gradient(90deg, #0f1c2e, #1a4a5c)) !important;
  box-shadow: 0 6px 18px rgba(15,28,46,.16);
}
.menu li {
  color: rgba(255,255,255,.95) !important;
  font-weight: 600;
}

/* Hero */
.hm-hero {
  position: relative;
  width: 100%;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background:
    var(--theme-hero-overlay, linear-gradient(120deg, rgba(15,28,46,.72) 8%, rgba(26,74,92,.45) 55%, rgba(15,28,46,.55) 100%)),
    url('/static/index/images/home-mid-banner.jpg') center/cover no-repeat;
  color: #fff;
  isolation: isolate;
}
.hm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 80%, color-mix(in srgb, var(--theme-accent, #d4782f) 28%, transparent), transparent 42%);
  pointer-events: none;
  z-index: 0;
}
.hm-hero__inner {
  position: relative;
  z-index: 1;
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  padding: 64px 0 48px;
  box-sizing: border-box;
  animation: hmFadeUp .9s ease both;
}
.hm-hero__brand {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.1;
  margin: 0 0 14px;
  text-shadow: 0 10px 40px rgba(0,0,0,.35);
  white-space: nowrap;
}
.hm-hero__lead {
  max-width: 640px;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,.9);
  margin: 0 0 28px;
}
.hm-hero__ctas { display: block; font-size: 0; }
.hm-btn {
  display: inline-block;
  vertical-align: top;
  min-width: 120px;
  padding: 12px 22px;
  margin-right: 12px;
  margin-bottom: 8px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none !important;
  transition: transform .25s ease, box-shadow .25s ease;
  box-sizing: border-box;
}
.hm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
}
.hm-btn--primary {
  background: var(--theme-accent, #d4782f);
  color: #fff !important;
}
.hm-btn--ghost {
  background: rgba(255,255,255,.12);
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.45);
}

@keyframes hmFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 服务入口 */
.hm-entries {
  background: var(--theme-sand, #f2efe9);
  padding: 32px 0 24px;
  width: 100%;
}
.hm-entries__inner {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}
.hm-entries__title {
  text-align: center;
  margin: 0 0 8px;
  font-size: 24px;
  color: var(--theme-ink, #0f1c2e);
  font-weight: 800;
  letter-spacing: .06em;
}
.hm-entries__sub {
  text-align: center;
  color: var(--theme-muted, #6a7785);
  margin: 0 0 20px;
  font-size: 14px;
}
.hm-entries__grid {
  width: 100%;
  font-size: 0;
  text-align: center;
}
.hm-entry {
  display: inline-block;
  vertical-align: top;
  width: 190px;
  margin: 0 5px 10px;
  text-align: center;
  text-decoration: none !important;
  background: var(--theme-card, #fff);
  border: 1px solid var(--theme-line, rgba(15,28,46,.08));
  border-radius: 12px;
  padding: 16px 8px;
  color: var(--theme-ink, #0f1c2e) !important;
  transition: transform .25s ease, box-shadow .25s ease;
  box-sizing: border-box;
  font-size: 14px;
}
.hm-entry:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(15,28,46,.1);
}
.hm-entry strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
  white-space: nowrap;
}
.hm-entry span {
  display: block;
  font-size: 12px;
  color: var(--theme-muted, #6a7785);
  white-space: nowrap;
}

/* 中间主题大图 */
.hm-mid-banner {
  width: 1200px;
  max-width: 100%;
  margin: 18px auto 10px;
  box-sizing: border-box;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15,28,46,.12);
}
.hm-mid-banner a {
  display: block;
  line-height: 0;
}
.hm-mid-banner img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

/* 恢复原广告位 contain2（不再隐藏） */
.contain2 {
  display: block !important;
  width: 1200px;
  max-width: 100%;
  height: auto !important;
  margin: 12px auto 0 !important;
  background: transparent !important;
  font-size: 0;
  overflow: hidden;
}
.contain2 .contain2-img01,
.contain2 .contain2-img02 {
  display: inline-block;
  vertical-align: top;
  width: 50%;
  height: 100px;
  object-fit: cover;
}

.contain5 .hot {
  font-weight: 800 !important;
}
.contain5 .hot::after {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  margin-top: 6px;
  background: var(--theme-accent, #d4782f);
  border-radius: 2px;
}

.footer {
  background: var(--theme-ink, #0f1c2e) !important;
}
.footer a {
  color: rgba(255,255,255,.85) !important;
}

@media (max-width: 1220px) {
  .hm-hero__inner,
  .hm-entries__inner,
  .hm-mid-banner,
  .contain2 {
    width: auto;
    margin-left: 16px !important;
    margin-right: 16px !important;
  }
  .hm-hero__inner {
    padding-left: 0;
    padding-right: 0;
  }
  .hm-hero__brand {
    font-size: 36px;
    white-space: normal;
  }
  .hm-entry {
    width: 30%;
    margin: 0 1.5% 10px;
  }
}

@media (max-width: 575px) {
  .hm-hero { min-height: 360px; }
  .hm-hero__brand { font-size: 28px; }
  .hm-hero__lead { font-size: 15px; }
  .hm-entry {
    width: 46%;
    margin: 0 2% 10px;
  }
  .hm-entry strong,
  .hm-entry span { white-space: normal; }
  .contain2 .contain2-img01,
  .contain2 .contain2-img02 {
    width: 100%;
    height: 90px;
  }
}
