:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --accent: #f59e0b;
  --bg-soft: #f3f6fc;
  --footer-bg: #16233f;

  --text: #24292f;
  --text-soft: #5d6673;
  --border: #e2e6ee;
  --radius: 10px;
  --container: 1200px;
}

* { 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.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }

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

.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  letter-spacing: 1px;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn-ghost:hover { background: var(--bg-soft); transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: var(--bg-soft); }

/* ---------------- 头部：居中品牌行 ---------------- */
.header { border-bottom: 1px solid var(--border); }
.brandrow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.brand {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
}
.brand-region { margin-left: 8px; color: var(--primary); font-size: 20px; }
.brandrow-side { font-size: 14px; color: var(--text-soft); }
.brandrow-tel { text-align: right; font-weight: 700; color: var(--primary); }

/* ---------------- 导航行：sticky 居中 ---------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--primary);
}
.navbar-inner {
  display: flex;
  justify-content: safe center;
  gap: 4px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.navbar-inner::-webkit-scrollbar { display: none; }
.nav-link {
  padding: 13px 22px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.92);
  transition: background 0.2s;
}
.nav-link:hover { background: var(--primary-dark); color: #fff; }

/* ---------------- 首屏：左文右轮播分栏 ---------------- */
.hero { background: linear-gradient(180deg, var(--bg-soft), #fff); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
  gap: 48px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 56px;
}
.hero-noimg .hero-grid { grid-template-columns: 1fr; text-align: center; }
.hero-noimg .hero-tags { justify-content: center; }
.hero-noimg .hero-actions { justify-content: center; }
.hero-eyebrow { font-size: 14px; letter-spacing: 4px; color: var(--primary); margin-bottom: 14px; }
.hero-title {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}
.hero-sub { font-size: 16px; color: var(--text-soft); line-height: 1.9; margin-bottom: 20px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 28px; }
.hero-tags li { font-size: 14px; color: var(--text-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* 轮播：圆角框高随图 + 淡入切换——JS(fit) 按首图原始比例定框高（上限 = 视口高 − 导航条），不裁剪；
   min-height 仅作 JS 就位前占位，fit() 内会清零 */
.hero-media { min-width: 0; }
.carousel {
  position: relative;
  min-height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.14);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--primary) 22%, transparent);
}
.carousel-track, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; transition: opacity 0.6s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 8;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.32);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}
.carousel-arrow:hover { background: rgba(15, 23, 42, 0.58); }
.carousel-arrow.prev { left: 12px; }
.carousel-arrow.next { right: 12px; }
.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 8;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.carousel-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.carousel-dot.is-active { background: #fff; transform: scale(1.2); }

/* ---------------- 内容版块：白/浅底交替 + 居中版块头 ---------------- */
.section { padding: 64px 0; scroll-margin-top: 56px; }
.section:nth-of-type(even) { background: var(--bg-soft); }
.sec-head { text-align: center; margin-bottom: 40px; }
.sec-title { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; }
.sec-bar {
  display: block;
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
  margin: 14px auto 0;
}
.sec-subtitle { font-size: 14px; color: var(--text-soft); margin-top: 12px; }

/* ---- 段落 / 关于 ---- */
.prose { font-size: 15px; line-height: 2; color: var(--text-soft); }
.prose p + p { margin-top: 12px; }
.prose a { color: var(--primary); }
.prose a:hover { text-decoration: underline; }
.prose-center { max-width: 820px; margin-left: auto; margin-right: auto; }
.about-grid {
  display: grid;
  grid-template-columns: clamp(260px, 32%, 380px) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}
.bizcard {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.12);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--primary) 18%, transparent);
}
.bizcard img { width: 100%; }
.about-local { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border); }
.prose-center.about-local { margin-top: 16px; }

/* ---- stats：浅色数据块（3~5 个自适应一行铺满） ---- */
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.stat {
  flex: 1 1 0;
  min-width: 160px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  padding: 30px 16px;
}
.section:nth-of-type(odd) .stat { background: var(--bg-soft); border-color: transparent; }
.stat-value {
  display: block;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}
.stat-label { font-size: 14px; color: var(--text-soft); }

/* ---- products：三列标准卡 ---- */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.prod {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.prod:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(17, 24, 39, 0.12);
  box-shadow: 0 14px 32px color-mix(in srgb, var(--primary) 20%, transparent);
}
.prod-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.prod-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.prod:hover .prod-img img { transform: scale(1.05); }
.prod-name {
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- faq：居中窄列问答卡 ---- */
.faq-list { max-width: 860px; margin: 0 auto; display: grid; gap: 16px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.section:nth-of-type(odd) .faq-item { background: var(--bg-soft); border-color: transparent; }
.faq-q { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.faq-a { font-size: 14px; color: var(--text-soft); line-height: 1.9; }
.faq-badge {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  line-height: 22px;
  margin-right: 10px;
}
.faq-badge-a { background: var(--accent); }

/* ---- process：横向步骤条（顶部连接线贯穿） ---- */
.steps {
  display: flex; flex-wrap: wrap;
  gap: 24px;
  position: relative;
}
.steps > * { flex: 1 1 210px; }
.steps::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: var(--border);
}
.step { position: relative; text-align: center; padding-top: 0; }
.step-dot {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 14px;
}
.step-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.step-desc { font-size: 13px; color: var(--text-soft); line-height: 1.8; }

/* ---- 卡片型：三列圆徽卡 ---- */
.card-grid {
  display: flex; flex-wrap: wrap;
  gap: 26px;
}
.card-grid > * { flex: 1 1 210px; }
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.section:nth-of-type(odd) .card { background: var(--bg-soft); border-color: transparent; }
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(17, 24, 39, 0.1);
  box-shadow: 0 14px 32px color-mix(in srgb, var(--primary) 18%, transparent);
}
.card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}
.card-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.card-desc { font-size: 14px; color: var(--text-soft); line-height: 1.9; }

/* ---------------- CTA 带 ---------------- */
.cta { background: linear-gradient(120deg, var(--primary), var(--primary-dark)); color: #fff; }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 42px;
  padding-bottom: 42px;
}
.cta-title { font-size: clamp(18px, 2.4vw, 26px); font-weight: 700; }

/* ---------------- 页脚：居中式 ---------------- */
.footer { background: var(--footer-bg); color: rgba(255, 255, 255, 0.72); padding: 44px 0; }
.footer-inner { text-align: center; }
.footer-name { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.footer-desc { font-size: 13px; line-height: 1.9; max-width: 720px; margin: 0 auto 14px; }
.foot-sites { font-size: 13px; line-height: 2; margin-bottom: 12px; }
.foot-sites a { color: rgba(255, 255, 255, 0.72); }
.foot-sites a:hover { color: #fff; text-decoration: underline; }
.footer-copy { font-size: 12px; color: rgba(255, 255, 255, 0.5); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 960px) {
  .brandrow { grid-template-columns: 1fr; gap: 6px; padding-top: 16px; padding-bottom: 14px; }
  .brandrow-slogan { display: none; }
  .brandrow-tel { text-align: center; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; padding-top: 38px; padding-bottom: 42px; }
  .about-grid { grid-template-columns: 1fr; gap: 26px; }
  .bizcard { max-width: 460px; margin: 0 auto; }
  .stat { flex-basis: calc(50% - 11px); }
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps::before { display: none; }
}
@media (max-width: 640px) {
  .navbar-inner { justify-content: flex-start; }
  .section { padding: 44px 0; }
  .stats-grid { gap: 14px; }
  .stat { flex-basis: calc(50% - 7px); }
  .prod-grid { grid-template-columns: 1fr; }
}

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

.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: 2px;
  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;
  }
}

/* ---------- 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; } }
