:root {
  --primary: #0e7490;
  --primary-dark: #155e75;
  --accent: #e11d48;
  --bg-soft: #f0f7f9;
  --footer-bg: #164e63;

  --text: #1c2b31;
  --text-soft: #64777e;
  --border: #dfe9ec;
  --radius: 10px;
  --wrap: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
.friend-links { display:none }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- 非 sticky 顶行：大 logo + 电话 ---------------- */
.toprow { border-bottom: 1px solid var(--border); }
.toprow-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
}
.logo { font-size: 24px; font-weight: 800; letter-spacing: 0.02em; }
.logo-region {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 2px 10px;
  margin-left: 10px;
  vertical-align: 3px;
}
.toprow-tel { font-size: 17px; font-weight: 700; color: var(--primary-dark); }
.toprow-tel:hover { color: var(--accent); }

/* ---------------- 右侧固定圆点锚点导航 ---------------- */
.dotnav {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dotnav a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.dotnav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.2s, transform 0.2s;
}
.dotnav a:hover .dotnav-dot { background: var(--primary); transform: scale(1.3); }
.dotnav-label {
  font-size: 12px;
  color: #fff;
  background: var(--primary-dark);
  border-radius: 4px;
  padding: 2px 10px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}
.dotnav a:hover .dotnav-label { opacity: 1; transform: translateX(0); }

/* ---------------- Hero：左右错落分屏 ---------------- */
.hero { padding: 64px 0 56px; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
}
.hero-title {
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 800;
  line-height: 1.35;
}
.hero-aside {
  align-self: end;
  border-left: 3px solid var(--accent);
  padding-left: 24px;
}
.hero-sub { font-size: 16px; color: var(--text-soft); }
.hero-tags { font-size: 13px; color: var(--primary); margin-top: 10px; }
.btn {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  border-radius: 999px;
  padding: 11px 32px;
  margin-top: 18px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ---------------- 照片带：banner 轮播（版心宽居中） ----------------
   高随图，JS(fit) 两段式封顶：h = 容器宽×首图比例，上限 = 视口高（顶行非 sticky 不占视口）；
   min-height 仅作 JS 就位前占位，fit() 内会清零 */
.photoband {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  background: var(--bg-soft);
  border-radius: var(--radius);
}
.photoband-track { position: absolute; inset: 0; }
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s;
}
.slide.is-active { opacity: 1; }
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.photoband-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}
.photoband-arrow:hover { background: #fff; }
.photoband-prev { left: 14px; }
.photoband-next { right: 14px; }
.photoband-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 13px;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 7px;
}
.photoband-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background 0.2s;
}
.photoband-dot.is-active { background: var(--accent); }

/* ---------------- 版块流：头列/内容列分屏，隔版块交替方向 ---------------- */
.block {
  padding: 72px 0 0;
  scroll-margin-top: 16px;
}
.blockgrid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 56px;
  border-top: 1px solid var(--border);
  padding-top: 48px;
}
/* 偶数版块：头列换到右侧（order 只换视觉顺序，列宽须同步对调，否则内容被挤进 4fr 窄列） */
.rev { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.rev .block-head { order: 2; text-align: right; }
.rev .block-body { order: 1; }
.block-no {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.12em;
}
.block-title {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  line-height: 1.4;
  margin-top: 8px;
}
.block-subtitle {
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 12px;
}

/* 段落型 */
.prose { font-size: 15px; }
.prose a { color: var(--primary); }
.prose a:hover { text-decoration: underline; }
.about-local { margin-top: 14px; color: var(--text-soft); font-size: 14px; }
.bizcard {
  max-width: 470px;
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.bizcard img { width: 100%; }

/* 指标型：细线上下框（3~5 个自适应均分一行） */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 22px;
  border-top: 2px solid var(--text);
  border-bottom: 1px solid var(--border);
  padding: 26px 0;
}
.stat-value {
  display: block;
  white-space: nowrap;
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.2;
}
.stat-label {
  display: block;
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 6px;
}

/* 产品型：图左名右横排小卡双列 */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.prod {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  background: var(--bg-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.prod:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}
.prod img {
  width: 128px;
  height: 96px;
  object-fit: cover;
}
.prod-name { font-size: 14px; font-weight: 700; padding-right: 14px; }

/* 问答型：细线分隔列表 */
.faq { display: grid; }
.faq-item { padding: 16px 0; border-bottom: 1px solid var(--border); }
.faq-item:first-child { padding-top: 0; }
.faq-q { font-size: 15px; font-weight: 700; }
.faq-q::before { content: "—— "; color: var(--accent); }
.faq-a { font-size: 14px; color: var(--text-soft); margin-top: 5px; }

/* 流程型：竖列编号行 */
.steps { display: grid; gap: 18px; }
.step {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
}
.step-no {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}
.step-title { font-size: 16px; font-weight: 700; }
.step-desc { font-size: 13px; color: var(--text-soft); margin-top: 3px; }

/* 卡片型：双列浅底卡 */
.card-grid {
  display: flex; flex-wrap: wrap;
  gap: 16px;
}
.card-grid > * { flex: 1 1 210px; }
.card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
}
.card-title { font-size: 16px; font-weight: 700; }
.card-desc { font-size: 14px; color: var(--text-soft); margin-top: 8px; }

/* ---------------- CTA：分屏，上下细线 ---------------- */
.cta {
  margin-top: 80px;
  border-top: 2px solid var(--text);
  border-bottom: 1px solid var(--border);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  padding-top: 40px;
  padding-bottom: 40px;
}
.cta-title { font-size: 24px; font-weight: 800; }
.cta-sub { font-size: 14px; color: var(--text-soft); margin-top: 4px; }
.cta-btn { margin-top: 0; background: var(--accent); font-size: 17px; }
.cta-btn:hover { background: var(--primary-dark); }

/* ---------------- 页脚 ---------------- */
.footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.72);
  padding: 34px 0 40px;
  margin-top: 0;
}
.footer-name { font-size: 16px; font-weight: 700; color: #fff; }
.footer-desc { font-size: 13px; margin-top: 6px; }
.foot-sites { font-size: 13px; margin-top: 12px; }
.foot-sites a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot-sites a:hover { color: var(--accent); }
.footer-copy { font-size: 12px; margin-top: 14px; opacity: 0.7; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
  .dotnav { display: none; }
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero-aside { align-self: start; }
  .blockgrid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .rev .block-head { order: 0; text-align: left; }
  .rev .block-body { order: 0; }
  .prod-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .toprow-inner { flex-direction: column; align-items: flex-start; gap: 6px; }
  .photoband-arrow { width: 32px; height: 32px; font-size: 17px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

/* 文章内容板块（详情页）：标题/时间 + 正文 + 侧栏推荐列表 */
.section-article {
  padding: 64px 0;
}

.article-head {
  text-align: center;
  margin-bottom: 44px;
}

.article-title {
  font-size: 28px;
  font-weight: 800;
  color: inherit;
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}

.article-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.article-time {
  margin-top: 14px;
  font-size: 14px;
  opacity: 0.65;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  grid-template-rows: auto 1fr;
  gap: 36px;
  align-items: start;
}

.article-clamp {
  min-width: 0;
}

.article-clamp.is-clamped {
  max-height: 600px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 90px), transparent);
  mask-image: linear-gradient(#000 calc(100% - 90px), transparent);
}

.article-clamp-btn {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  justify-self: center;
  margin-top: 4px;
  padding: 9px 34px;
  font-size: 14px;
  color: var(--primary);
  background: transparent;
  border: 1px solid var(--primary);
  border-radius: 20px;
  cursor: pointer;
}

.article-clamp-btn:hover {
  color: #fff;
  background: var(--primary);
}

.article-body {
  font-size: 16px;
  line-height: 1.9;
  opacity: 0.88;
  text-align: justify;
}

.article-body p {
  margin-bottom: 16px;
}

.article-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 18px auto;
  border-radius: 4px;
}

.article-side {
  grid-column: 2;
  grid-row: 1 / 3;
  display: grid;
  gap: 24px;
  min-width: 0;
}

.article-list-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px 22px;
  min-width: 0;
  overflow: hidden;
}

.article-list-title {
  font-size: 17px;
  font-weight: 700;
  padding-bottom: 12px;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}

.article-list li {
  list-style: none;
  padding: 7px 0;
  border-bottom: 1px dashed var(--border);
}

.article-list li:last-child {
  border-bottom: none;
}

.article-list a {
  display: block;
  font-size: 14px;
  color: inherit;
  opacity: 0.8;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-list a:hover {
  color: var(--primary);
  opacity: 1;
}

@media (max-width: 860px) {
  .article-layout {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .article-side {
    grid-column: 1;
    grid-row: 3;
  }
}

/* 关于我们双列：文字左 + 名片卡右 */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(260px, 34%, 400px);
  gap: 36px;
  align-items: start;
}

.about-grid .bizcard {
  margin: 0;
}

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-grid .bizcard {
    margin: 24px auto 0;
  }
}

/* ---------- logo 牌匾字标（圆角矩形色块） ---------- */
.logo-word { position: relative; display: inline-block; vertical-align: middle; white-space: nowrap; line-height: 1.2; padding: .26em .72em; background: linear-gradient(115deg, var(--primary-dark), var(--primary) 55%, var(--primary-dark)); color: #fff; -webkit-text-fill-color: #fff; /*border-radius: .35em;*/ box-shadow: 0 3px 10px color-mix(in srgb, var(--primary) 40%, transparent); overflow: hidden; }
.logo-word-in { display: inline-block; }
.logo-word::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: translateX(-160%); animation: logoShine 2.4s ease-in-out infinite; }
@keyframes logoShine { 0% { transform: translateX(-160%); } 100% { transform: translateX(320%); } }
@media (prefers-reduced-motion: reduce) { .logo-word::after { animation: none; } }
