:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --accent: #f59e0b;
  --bg-soft: #f5f6fb;
  --footer-bg: #171a2e;

  --text: #23272f;
  --text-soft: #626976;
  --border: #e4e6ee;
  --radius: 14px;
  --col: 860px;
  --nav-h: 56px;
}

* { 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%; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }

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

/* ---------------- 浮动胶囊导航：圆角悬浮居中 ---------------- */
.navwrap {
  position: sticky;
  top: 10px;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 10px 16px 0;
}
.capsule {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: calc(var(--col) + 40px);
  width: 100%;
  height: var(--nav-h);
  padding: 0 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  /* 阴影双行回退：不支持 color-mix 的浏览器用中性灰 */
  box-shadow: 0 8px 30px rgba(17, 24, 39, 0.1);
  box-shadow: 0 8px 30px color-mix(in srgb, var(--primary) 16%, transparent);
}
.logo {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary-dark);
  white-space: nowrap;
}
.logo-region { font-size: 12px; font-weight: 600; color: var(--accent); margin-left: 8px; }
.nav {
  display: flex;
  gap: 4px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav-link {
  flex: none;
  font-size: 13px;
  color: var(--text-soft);
  padding: 5px 10px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--primary); background: var(--bg-soft); }
.nav-tel {
  flex: none;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  border-radius: 999px;
  padding: 7px 14px;
  white-space: nowrap;
  transition: background 0.2s;
}
.nav-tel:hover { background: var(--primary-dark); }

/* ---------------- Hero：居中文案 ---------------- */
.hero {
  text-align: center;
  padding: 64px 0 36px;
}
.hero-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: 0.01em;
}
.hero-sub {
  font-size: 16px;
  color: var(--text-soft);
  margin-top: 14px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.hero-tags li {
  font-size: 12px;
  color: var(--text-soft);
  border: 1px dashed var(--border);
  border-radius: 999px;
  padding: 3px 12px;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}
.btn {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  border-radius: 999px;
  padding: 11px 30px;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-ghost {
  color: var(--primary);
  background: transparent;
  border: 1px solid var(--primary);
}
.btn-ghost:hover { color: #fff; background: var(--primary); }

/* ---------------- 圆角卡轮播：banner ----------------
   高随图，JS(fit) 两段式封顶：h = 容器宽×首图比例，上限 = 视口高 − 胶囊导航；
   min-height 仅作 JS 就位前占位，fit() 内会清零 */
.cardband {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  margin-top: 8px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  box-shadow: 0 14px 36px rgba(17, 24, 39, 0.1);
  box-shadow: 0 14px 36px color-mix(in srgb, var(--primary) 14%, transparent);
}
.cardband-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;
}
.cardband-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}
.cardband-arrow:hover { background: #fff; }
.cardband-prev { left: 14px; }
.cardband-next { right: 14px; }
.cardband-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 7px;
}
.cardband-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.cardband-dot.is-active { background: #fff; transform: scale(1.25); }

/* ---------------- 版块流 ---------------- */
.main { padding: 26px 0 8px; }
.block {
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: calc(var(--nav-h) + 26px);
}
.block:last-child { border-bottom: 0; }
.block-head { margin-bottom: 24px; }
.block-index {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}
.block-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.35;
}
.block-subtitle {
  font-size: 14px;
  color: var(--text-soft);
  margin-top: 6px;
}

/* 段落型 */
.prose { font-size: 15px; color: var(--text); }
.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: 440px;
  margin-top: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.bizcard img { width: 100%; }

/* 指标型：徽章行 */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.badge {
  flex: 1 1 150px;
  text-align: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 12px;
}
.badge-value {
  display: block;
  font-size: 30px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}
.badge-label {
  display: block;
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 4px;
}

/* 产品型：单列横条图卡（图左文右） */
.prod-list { display: grid; gap: 14px; }
.prod {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.25s, transform 0.25s;
}
.prod:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.09);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--primary) 15%, transparent);
}
.prod-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
}
.prod-img img { width: 100%; height: 100%; object-fit: cover; }
.prod-info { padding: 12px 18px 12px 0; }
.prod-name { font-size: 16px; font-weight: 700; }
.prod-cta {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 8px;
}
.prod-cta:hover { text-decoration: underline; }

/* 问答型：details 手风琴 */
.acc { display: grid; gap: 10px; }
.acc-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.acc-item[open] { border-color: var(--primary); }
.acc-q {
  position: relative;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 44px 14px 18px;
  cursor: pointer;
  user-select: none;
}
.acc-q::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--text-soft);
  transition: transform 0.2s;
}
.acc-item[open] .acc-q::after { content: "−"; color: var(--primary); }
.acc-a {
  font-size: 14px;
  color: var(--text-soft);
  padding: 0 18px 14px;
}

/* 流程型：大序号出挑 + 虚线分隔 */
.steps { display: grid; }
.step {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--border);
}
.step:last-child { border-bottom: 0; }
.step-no {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--primary);
}
.step-title { font-size: 16px; font-weight: 700; }
.step-desc { font-size: 14px; color: var(--text-soft); margin-top: 4px; }

/* 卡片型：✓ 清单 */
.checks { display: grid; gap: 6px; }
.check {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
}
.check-mark {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: var(--primary);
  border-radius: 50%;
  margin-top: 3px;
}
.check-title { font-size: 16px; font-weight: 700; }
.check-desc { font-size: 14px; color: var(--text-soft); margin-top: 3px; }

/* ---------------- CTA 带 ---------------- */
.cta {
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius);
  color: #fff;
  padding: 44px 24px;
  margin: 40px 0 56px;
}
.cta-title { font-size: 24px; font-weight: 800; }
.cta-sub { font-size: 14px; opacity: 0.85; margin-top: 6px; }
.cta-btn {
  margin-top: 20px;
  color: var(--primary-dark);
  background: #fff;
  font-size: 18px;
}
.cta-btn:hover { background: var(--bg-soft); }

/* ---------------- 页脚 ---------------- */
.footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.72);
  padding: 40px 0 30px;
}
.footer-inner { text-align: center; }
.footer-name { font-size: 17px; font-weight: 700; color: #fff; }
.footer-desc { font-size: 13px; margin-top: 8px; }
.foot-sites { font-size: 13px; margin-top: 14px; }
.foot-sites a { color: rgba(255, 255, 255, 0.85); }
.foot-sites a:hover { color: #fff; text-decoration: underline; }
.footer-copy { font-size: 12px; margin-top: 16px; opacity: 0.6; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 720px) {
  .nav { display: none; }
  .capsule { justify-content: space-between; }
  .hero { padding: 44px 0 28px; }
  .prod { grid-template-columns: 130px minmax(0, 1fr); gap: 12px; }
  .prod-info { padding: 10px 12px 10px 0; }
  .prod-name { font-size: 15px; }
  .step { grid-template-columns: 48px minmax(0, 1fr); }
  .step-no { font-size: 32px; }
  .hero-actions { flex-direction: column; align-items: center; }
}

/* 文章内容板块（详情页）：标题/时间 + 正文 + 侧栏推荐列表 */
.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: 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: 0;
}

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

.article-list-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0;
  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;
}

/* 关于我们双列：文字左 + 名片卡右 */
.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: .6em;*/ 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; } }
