/* ==========================================================================
   前台样式  稳重蓝色商务风
   ========================================================================== */

:root {
  --ink: #16283c;
  --muted: #5c6f82;
  --line: #e3e9f1;
  --paper: #f4f7fb;
  --blue: #1e4a7a;
  --blue-deep: #12263f;
  --accent: #2f6fb2;
  --gold: #c9a227;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  /* clip 不会创建滚动容器，不影响导航的固定定位（hidden 会破坏 sticky/fixed 内的锚点行为） */
  overflow-x: clip;
  /* 顶部固定导航占用的高度 */
  padding-top: 82px;
}

.hero h1,
.hero-desc,
.about h2,
.section-head h2,
.contact-card h2 {
  overflow-wrap: break-word;
}

/* 锚点定位时给固定导航留出空间 */
section[id],
main[id] {
  scroll-margin-top: 92px;
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin: auto;
}

/* ---------- 顶部导航（固定悬浮，滚动不消失） ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.nav.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(18, 38, 63, 0.07);
}

.nav-inner {
  width: min(1180px, calc(100% - 48px));
  margin: auto;
  height: 82px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.nav-inner > .brand {
  justify-self: start;
}

.nav-inner > nav {
  justify-self: center;
}

.nav-inner > .menu-toggle {
  justify-self: end;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--blue), var(--accent));
  color: #fff;
  font: 800 20px/1 Georgia, serif;
  overflow: hidden;
  flex: none;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav nav {
  display: flex;
  gap: 28px;
}

.nav nav a {
  font-size: 14px;
  color: #42586d;
  text-decoration: none;
  transition: color 0.2s;
}

.nav nav a:hover {
  color: var(--blue);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.menu-toggle i,
.menu-toggle i::before,
.menu-toggle i::after {
  content: "";
  position: absolute;
  left: 11px;
  width: 18px;
  height: 1.6px;
  background: var(--ink);
  border-radius: 2px;
  transition: 0.25s;
}

.menu-toggle i {
  top: 19px;
}

.menu-toggle i::before {
  top: -6px;
  left: 0;
}

.menu-toggle i::after {
  top: 6px;
  left: 0;
}

.menu-toggle.is-open i {
  background: transparent;
}

.menu-toggle.is-open i::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle.is-open i::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ---------- 首屏 ---------- */
.hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 55px;
  align-items: center;
  padding: 60px 0 90px;
}

.kicker,
.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.kicker span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}

.hero h1 {
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.12;
  letter-spacing: -0.045em;
  margin: 25px 0 28px;
  max-width: 720px;
}

.hero-desc {
  font-size: 17px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 650px;
}

.hero-actions {
  display: flex;
  gap: 13px;
  margin: 35px 0;
}

.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: 0.22s;
}

.btn.primary {
  background: linear-gradient(135deg, var(--blue), var(--accent));
  color: #fff;
  box-shadow: 0 12px 28px rgba(30, 74, 122, 0.28);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(30, 74, 122, 0.36);
}

.btn.secondary {
  border: 1px solid #c6d4e4;
  color: #33506e;
  background: #fff;
}

.btn.secondary:hover {
  border-color: var(--accent);
  color: var(--blue);
  background: var(--paper);
}

.trust-row {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  color: #7e90a3;
  font-size: 12px;
}

.trust-row span::before {
  content: "✓";
  color: var(--gold);
  margin-right: 5px;
  font-weight: 800;
}

/* 首屏右侧：深蓝面板 + 浮动数据卡片 */
.hero-visual {
  height: 540px;
  position: relative;
  border-radius: 26px;
  background: linear-gradient(150deg, #24507f, var(--blue-deep));
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(18, 38, 63, 0.28);
}

.hv-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(circle at 70% 20%, #000, transparent 68%);
  mask-image: radial-gradient(circle at 70% 20%, #000, transparent 68%);
}

.hv-ring {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.hv-ring-a {
  width: 340px;
  height: 340px;
  left: -100px;
  bottom: -120px;
}

.hv-ring-b {
  width: 200px;
  height: 200px;
  right: -50px;
  top: 60px;
}

.hv-watermark {
  position: absolute;
  left: 34px;
  top: 30px;
  font: 800 108px/1 Georgia, serif;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.1);
}

.hv-caption {
  position: absolute;
  left: 40px;
  bottom: 34px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  letter-spacing: 0.28em;
}

.hv-card {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  padding: 18px 24px;
  box-shadow: 0 18px 44px rgba(10, 25, 47, 0.32);
  animation: float 6s ease-in-out infinite;
}

.hv-card b {
  display: block;
  font-size: 30px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.03em;
}

.hv-card span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

.hv-card-1 {
  left: 10%;
  top: 30%;
}

.hv-card-2 {
  right: 8%;
  top: 16%;
  animation-delay: -2s;
}

.hv-card-3 {
  right: 14%;
  bottom: 18%;
  animation-delay: -4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ---------- 介绍条 ---------- */
.intro-band {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
  padding: 30px 0;
}

.intro-band .shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.intro-band p {
  font-size: 18px;
  margin: 0;
  line-height: 1.6;
}

.intro-band span {
  color: #9db8d6;
  font-size: 12px;
  white-space: nowrap;
}

/* ---------- 通用区块 ---------- */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--paper);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 80px;
  align-items: end;
}

.section-head h2,
.about h2,
.contact-card h2 {
  font-size: clamp(30px, 4.4vw, 52px);
  letter-spacing: -0.035em;
  line-height: 1.25;
  margin: 16px 0 0;
}

.section-head > p {
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}

/* ---------- 服务能力 ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 55px;
}

.services article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  min-height: 232px;
  padding: 26px;
  position: relative;
  transition: 0.25s;
}

.services article:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(18, 38, 63, 0.12);
  border-color: transparent;
}

.svc-badge {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--blue), var(--accent));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 8px 18px rgba(30, 74, 122, 0.25);
}

.services h3 {
  font-size: 20px;
  margin: 54px 0 12px;
}

.services p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  margin: 0;
}

.services i {
  position: absolute;
  right: 24px;
  bottom: 20px;
  color: var(--accent);
  font-style: normal;
  transition: 0.25s;
}

.services article:hover i {
  transform: translate(3px, -3px);
}

/* ---------- 合作流程（浅色时间轴） ---------- */
.process {
  background: #fff;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 64px;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), #a9c6e4);
}

.steps article {
  padding: 0 22px;
  position: relative;
}

.step-num {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--blue);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 6px #fff;
}

.steps h3 {
  font-size: 17px;
  margin: 26px 0 10px;
}

.steps p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 13px;
  margin: 0;
  text-wrap: pretty;
}

/* ---------- 热门推荐（首页区块） ---------- */
.hot-head h2 {
  text-align: center;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.02em;
  margin: 0 0 46px;
}

.hot-carousel {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hot-arrow {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: #8b9aa9;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: 0.2s;
  display: grid;
  place-items: center;
  padding: 0;
}

.hot-arrow:hover:not(:disabled) {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 6px 16px rgba(30, 74, 122, 0.14);
}

.hot-arrow:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.hot-track {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 6px;
}

.hot-track::-webkit-scrollbar {
  display: none;
}

.hot-card {
  flex: none;
  width: calc((100% - 52px) / 3);
  text-decoration: none;
  color: var(--ink);
}

.hot-thumb {
  height: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 22px;
  transition: 0.25s;
}

.hot-card:hover .hot-thumb {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(18, 38, 63, 0.12);
  border-color: #c3d4e6;
}

.hot-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.hot-placeholder {
  color: #9aa8b8;
  font-size: 13px;
}

.hot-name {
  margin: 14px 2px 0;
  font-size: 13.5px;
  color: #3d4d5e;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hot-empty {
  text-align: center;
  color: var(--muted);
  padding: 30px 0;
}

/* ---------- 关于我们 ---------- */
.about {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 100px;
}

.about-copy {
  font-size: 17px;
  line-height: 1.9;
  color: var(--muted);
}

.about-copy p {
  margin: 0 0 18px;
}

.about-copy strong {
  color: var(--ink);
}

.values {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.values span {
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  font-size: 12px;
  color: #33506e;
}

/* ---------- 联系区块 ---------- */
.contact-wrap {
  padding: 20px 0 100px;
}

.contact-card {
  padding: 56px;
  border-radius: 26px;
  background: linear-gradient(135deg, #24507f, var(--blue-deep));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  color: #fff;
  box-shadow: 0 26px 60px rgba(18, 38, 63, 0.28);
}

.contact-card .eyebrow {
  color: #8fb6e0;
}

.contact-card h2 {
  color: #fff;
}

.contact-card > div > p:not(.eyebrow) {
  color: #b8c9db;
  line-height: 1.8;
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-info > * {
  padding: 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #fff;
  text-decoration: none;
  transition: 0.2s;
}

.contact-info a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
}

.contact-info > div:last-child {
  grid-column: 1 / -1;
}

.contact-info small {
  color: #8fa8c4;
}

.contact-info b {
  font-size: 15px;
  word-break: break-all;
}

/* ---------- 页脚 ---------- */
footer {
  background: var(--blue-deep);
  padding: 34px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-size: 16px;
  color: #fff;
}

.footer-brand .brand-mark {
  width: 31px;
  height: 31px;
  font-size: 16px;
  border-radius: 9px;
}

.footer-meta {
  display: flex;
  gap: 20px;
  color: #8fa8c4;
  font-size: 12px;
  flex-wrap: wrap;
}

.footer-meta a {
  color: #a8bdd4;
  text-decoration: none;
}

.footer-meta a:hover {
  color: #fff;
}

/* ---------- 热门推荐详情页 ---------- */
body.hot-detail-page {
  padding-top: 0;
}

.hot-bar {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
}

.hot-bar-inner {
  width: min(1180px, calc(100% - 48px));
  margin: auto;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hot-bar b {
  color: #fff;
  font-size: 17px;
  letter-spacing: 0.05em;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--gold);
}

.hot-bar a {
  color: #a8bdd4;
  font-size: 13px;
  text-decoration: none;
}

.hot-bar a:hover {
  color: #fff;
}

.hot-detail {
  padding: 54px 0 90px;
}

.hot-article {
  width: min(820px, calc(100% - 48px));
  margin: auto;
}

.hot-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.hot-title-row h1 {
  font-size: 24px;
  margin: 0;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

.hot-views {
  color: #8b9aa9;
  font-size: 13px;
  white-space: nowrap;
}

.hot-image {
  margin-top: 36px;
  display: grid;
  place-items: center;
  min-height: 220px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
}

.hot-image img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
}

.hot-nav {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.hot-nav a {
  color: #b8452f;
  font-size: 13.5px;
  text-decoration: none;
}

.hot-nav a:hover {
  text-decoration: underline;
}

.hot-none {
  color: #c0cad6;
  font-size: 13.5px;
}

/* ---------- 滚动渐显 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.no-js .reveal,
.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hv-card,
  .steps::before {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- 平板 ---------- */
@media (max-width: 900px) {
  .nav nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav nav.is-open {
    display: flex;
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(18, 38, 63, 0.08);
    padding: 8px 24px 18px;
  }

  .nav nav.is-open a {
    padding: 13px 0;
    border-bottom: 1px solid var(--paper);
    font-size: 15px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 40px;
    min-height: auto;
  }

  .hero-visual {
    height: 440px;
  }

  .section-head,
  .about,
  .contact-card {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .services {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .steps::before {
    display: none;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  .contact-info > div:last-child {
    grid-column: auto;
  }

  .footer-inner,
  .footer-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-meta {
    margin-top: 20px;
  }
}

/* ---------- 手机 ---------- */
@media (max-width: 540px) {
  .shell {
    width: calc(100% - 30px);
  }

  .nav-inner {
    width: calc(100% - 30px);
  }

  .nav nav.is-open {
    top: 72px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    text-align: center;
  }

  .hero-visual {
    height: 380px;
  }

  .hv-watermark {
    font-size: 76px;
  }

  .hv-card {
    padding: 14px 18px;
  }

  .hv-card b {
    font-size: 24px;
  }

  .hv-card-1 {
    left: 6%;
    top: 26%;
  }

  .hv-card-2 {
    right: 5%;
    top: 12%;
  }

  .hv-card-3 {
    right: 8%;
    bottom: 14%;
  }

  .intro-band .shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .intro-band p {
    font-size: 16px;
  }

  .section {
    padding: 72px 0;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .steps article {
    padding: 0 4px;
  }

  .contact-card {
    padding: 34px 24px;
  }
}
