:root {
  --primary: #1a1a1a;
  --primary-dark: #000;
  --accent: #facc15;
  --bg-soft: #fffbeb;
  --footer-bg: #111111;

  --text: #1a1a1a;
  --text-soft: #57534e;
  --line: #111;
  --wrap: 1060px;
  --topbar-h: 60px;
  --hard-shadow: 6px 6px 0 var(--line);
}

* { 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: var(--bg-soft);
  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%; }
mark { background: none; color: inherit; }

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

/* ---------------- sticky 顶栏：白底粗黑下边线 ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar-h);
  background: #fff;
  border-bottom: 3px solid var(--line);
}
.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}
.logo {
  font-size: 17px;
  font-weight: 900;
  white-space: nowrap;
}
.logo-region { font-size: 12px; font-weight: 700; margin-left: 8px; }
.nav {
  flex: 1;
  display: flex;
  justify-content: safe center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  font-size: 14px;
  font-weight: 700;
  padding: 5px 13px;
  border: 2px solid transparent;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s;
}
.nav a:hover { border-color: var(--line); background: var(--accent); }
.topbar-tel { font-size: 15px; font-weight: 900; white-space: nowrap; }
.topbar-tel:hover { color: var(--primary-dark); text-decoration: underline; }

/* ---------------- Hero：左文右电话黑框盒 ---------------- */
.hero { padding: 52px 0 8px; }
.hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 34px;
}
.hero-main { flex: 1; min-width: 0; }
.hero-title {
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 900;
  line-height: 1.4;
}
/* 高亮黄标记：断行处也保持黄底 */
.mark {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hero-sub { font-size: 15px; color: var(--text-soft); margin-top: 18px; max-width: 560px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.hero-tags li {
  font-size: 13px;
  font-weight: 700;
  border: 2px solid var(--line);
  background: #fff;
  padding: 3px 13px;
}
.btn {
  display: inline-block;
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  background: var(--primary);
  border: 2px solid var(--line);
  box-shadow: var(--hard-shadow);
  padding: 11px 32px;
  margin-top: 24px;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--line); }
.hero-telbox {
  flex: 0 0 250px;
  background: #fff;
  border: 3px solid var(--line);
  box-shadow: 8px 8px 0 var(--line);
  padding: 24px 24px 22px;
  text-align: center;
}
.hero-telbox-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  background: var(--accent);
  border: 2px solid var(--line);
  padding: 1px 10px;
}
.hero-telbox-num {
  display: block;
  font-size: 24px;
  font-weight: 900;
  margin-top: 12px;
  word-break: break-all;
}
.hero-telbox-num:hover { text-decoration: underline; }
.hero-telbox-tip { font-size: 12px; color: var(--text-soft); margin-top: 8px; }

/* ---------------- 照片带：banner 轮播（版心宽居中，黑框硬阴影） ----------------
   高随图，JS(fit) 两段式封顶：h = 容器宽×首图比例，上限 = 视口高−顶栏高；
   min-height 仅作 JS 就位前占位，fit() 内会清零 */
.bandsec { padding-top: 40px; }
.photoband {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  background: #fff;
  border: 3px solid var(--line);
  box-shadow: 8px 8px 0 var(--line);
}
.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: 2px solid var(--line);
  background: var(--accent);
  color: var(--text);
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s;
}
.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: 11px;
  height: 11px;
  border: 2px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: background 0.15s;
}
.photoband-dot.is-active { background: var(--accent); }

/* ---------------- 版块流：黄底黑框标签式版块头 ---------------- */
.block {
  padding-top: 60px;
  scroll-margin-top: calc(var(--topbar-h) + 14px);
}
.block-head { margin-bottom: 26px; }
.block-title {
  display: inline-block;
  font-size: 23px;
  font-weight: 900;
  line-height: 1.4;
  background: var(--accent);
  border: 3px solid var(--line);
  box-shadow: var(--hard-shadow);
  padding: 8px 22px;
}
.block-subtitle { font-size: 13px; color: var(--text-soft); margin-top: 14px; }

/* 段落型：黑框硬阴影盒 */
.prose-box {
  background: #fff;
  border: 2px solid var(--line);
  box-shadow: var(--hard-shadow);
  padding: 30px 32px;
}
.prose { font-size: 15px; }
.prose a { font-weight: 700; text-decoration: underline; }
.prose a:hover { background: var(--accent); }
.about-local { margin-top: 14px; color: var(--text-soft); font-size: 14px; }
.bizcard {
  max-width: 470px;
  margin-top: 18px;
  border: 2px solid var(--line);
  overflow: hidden;
}
.bizcard img { width: 100%; }

/* 指标型：各自框格（不限个数，均分一行） */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}
.stat {
  background: #fff;
  border: 2px solid var(--line);
  box-shadow: var(--hard-shadow);
  padding: 22px 16px;
  text-align: center;
}
.stat-value { display: block; font-size: 32px; font-weight: 900; 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: 22px;
}
.prod {
  background: #fff;
  border: 2px solid var(--line);
  box-shadow: var(--hard-shadow);
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}
.prod:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--line); }
.prod img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 2px solid var(--line);
}
.prod-name { font-size: 15px; font-weight: 900; padding: 12px 16px; }

/* 问答型：黑框列表 Q 黄 highlight */
.faq { display: grid; gap: 16px; }
.faq-item {
  background: #fff;
  border: 2px solid var(--line);
  padding: 18px 22px;
}
.faq-q { font-size: 15px; font-weight: 900; }
.faq-q .mark { box-shadow: 0 0 0 2px var(--accent); }
.faq-a { font-size: 14px; color: var(--text-soft); margin-top: 10px; }

/* 流程型：横排框卡大描边编号字 */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.step {
  background: #fff;
  border: 2px solid var(--line);
  padding: 20px 20px 18px;
}
.step-no {
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  -webkit-text-stroke: 2px var(--line);
}
.step-title { font-size: 15px; font-weight: 900; margin-top: 10px; }
.step-desc { font-size: 13px; color: var(--text-soft); margin-top: 3px; }

/* 卡片型：黑框硬阴影卡，奇偶微旋转 */
.card-grid {
  display: flex; flex-wrap: wrap;
  gap: 22px;
}
.card-grid > * { flex: 1 1 210px; }
.card {
  background: #fff;
  border: 2px solid var(--line);
  box-shadow: var(--hard-shadow);
  padding: 24px 24px 20px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:nth-child(odd) { transform: rotate(-0.5deg); }
.card:nth-child(even) { transform: rotate(0.5deg); }
.card:hover { transform: translate(-2px, -2px) rotate(0deg); box-shadow: 8px 8px 0 var(--line); }
.card-title { font-size: 16px; font-weight: 900; }
.card-desc { font-size: 14px; color: var(--text-soft); margin-top: 7px; }

/* ---------------- CTA：黄底黑框大块 ---------------- */
.cta-sec { padding-top: 60px; }
.cta {
  background: var(--accent);
  border: 3px solid var(--line);
  box-shadow: 8px 8px 0 var(--line);
  padding: 44px 40px;
  text-align: center;
}
.cta-title { font-size: 25px; font-weight: 900; }
.cta-sub { font-size: 14px; color: var(--text-soft); margin-top: 6px; }
.cta-btn { font-size: 17px; }

/* ---------------- 页脚：黑底白字 ---------------- */
.footer {
  margin-top: 56px;
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.75);
  border-top: 3px solid var(--line);
  padding: 34px 0 40px;
}
.footer-name { font-size: 16px; font-weight: 900; color: #fff; }
.footer-desc { font-size: 13px; margin-top: 6px; }
.foot-sites { font-size: 13px; margin-top: 12px; }
.foot-sites a { color: var(--accent); }
.foot-sites a:hover { text-decoration: underline; }
.footer-copy { font-size: 12px; margin-top: 14px; opacity: 0.7; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .topbar-inner { justify-content: space-between; }
  .hero-inner { flex-direction: column; }
  .hero-telbox { flex: none; width: 100%; }
  .prod-grid,
  .card:nth-child(odd),
  .card:nth-child(even) { transform: none; }
}
@media (max-width: 560px) {
  .hero-title { font-size: 26px; }
  .block-title { font-size: 19px; padding: 6px 16px; }
  .prose-box { padding: 24px 20px; }
}

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

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

.article-list-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  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 #e5e7eb;
}

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