:root {
  --primary: #c2410c;
  --primary-dark: #9a3412;
  --accent: #f59e0b;
  --bg-soft: #faf5f0;
  --footer-bg: #1c1210;

  --text: #292321;
  --text-soft: #6b615c;
  --border: #ece4dd;
  --radius: 10px;
  --wrap: 1160px;
  --topbar-h: 60px;
}

* { 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 单行顶栏 ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar-h);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 26px;
}
.logo {
  font-size: 19px;
  font-weight: 800;
  color: var(--primary-dark);
  white-space: nowrap;
}
.logo-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 2px 10px;
  margin-left: 8px;
  vertical-align: 2px;
}
.nav {
  flex: 1;
  display: flex;
  justify-content: safe center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  position: relative;
  font-size: 14px;
  color: var(--text-soft);
  padding: 6px 12px;
  white-space: nowrap;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.nav a:hover { color: var(--primary-dark); }
.nav a:hover::after { transform: scaleX(1); }
.topbar-tel {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  border-radius: 999px;
  padding: 7px 20px;
  white-space: nowrap;
  transition: background 0.2s;
}
.topbar-tel:hover { background: var(--primary-dark); }

/* ---------------- 首屏紧凑文字区 ---------------- */
.intro { padding: 52px 0 8px; text-align: center; }
.intro-kicker {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.intro-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.3;
}
.intro-sub {
  font-size: 16px;
  color: var(--text-soft);
  margin: 10px auto 0;
  max-width: 640px;
}
.intro-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.btn {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  border-radius: var(--radius);
  padding: 11px 30px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.intro-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.intro-tags li {
  font-size: 12px;
  color: var(--text-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 13px;
}

/* ---------------- 产品画廊：首格跨 2×2 的大图拼贴 ---------------- */
.gallerysec { padding-top: 36px; }
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 180px;
  grid-auto-flow: dense;
  gap: 14px;
}
.g-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
}
.g-lead { grid-column: span 2; grid-row: span 2; }
.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.g-item:hover img { transform: scale(1.05); }
.g-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 14px 10px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  opacity: 0;
  transition: opacity 0.25s;
}
.g-item:hover .g-name { opacity: 1; }
.g-lead .g-name { font-size: 16px; }
/* 触屏无 hover：名称常显 */
@media (hover: none) {
  .g-name { opacity: 1; }
}

/* ---------------- 照片带：banner 轮播（版心宽居中） ----------------
   高随图，JS(fit) 两段式封顶：h = 容器宽×首图比例，上限 = 视口高−顶栏高；
   min-height 仅作 JS 就位前占位，fit() 内会清零 */
.bandsec { padding-top: 24px; }
.photoband {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  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: 56px 0 0;
  scroll-margin-top: calc(var(--topbar-h) + 12px);
}
main > .block:last-child { padding-bottom: 8px; }
.block-head { margin-bottom: 26px; }
.block-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.4;
}
.block-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 10px;
}
.block-subtitle {
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 10px;
}

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

/* 指标型：白底网格，每项顶部粗色线（不限指标个数，均分一行） */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
}
.stat {
  border-top: 3px solid var(--primary);
  padding-top: 14px;
}
.stat-value {
  display: block;
  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: 4px;
}

/* 产品型（版块流内第二形态）：横向滚动产品带 */
.prod-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  scrollbar-width: thin;
}
/* 跑马灯态：JS 接管滚动，去吸附、藏滚动条 */
.prod-scroll.is-marquee {
  scroll-snap-type: none;
  scrollbar-width: none;
  padding-bottom: 0;
}
.prod-scroll.is-marquee::-webkit-scrollbar { display: none; }
.prod-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.prod-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.prod-name {
  font-size: 14px;
  font-weight: 700;
  padding: 10px 14px 12px;
}

/* 问答型：Q1/Q2 标签行 + 细线分隔 */
.faq { border-top: 1px solid var(--border); }
.faq-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.faq-tag {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent);
  padding-top: 1px;
}
.faq-q { font-size: 15px; font-weight: 700; }
.faq-a { font-size: 14px; color: var(--text-soft); margin-top: 5px; }

/* 流程型：圆环描边序号横排 */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 22px;
}
.step-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
}
.step-title { font-size: 16px; font-weight: 700; margin-top: 12px; }
.step-desc { font-size: 14px; color: var(--text-soft); margin-top: 4px; }

/* 卡片型：双列白卡描边 + 标题下短杠 */
.card-grid {
  display: flex; flex-wrap: wrap;
  gap: 16px;
}
.card-grid > * { flex: 1 1 210px; }
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--primary); }
.card-title { font-size: 16px; font-weight: 700; }
.card-title::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 8px;
}
.card-desc { font-size: 14px; color: var(--text-soft); margin-top: 10px; }

/* ---------------- CTA 深色圆角块 ---------------- */
.ctasec { padding-top: 56px; }
.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  background: var(--footer-bg);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px 34px;
}
.cta-title { font-size: 22px; font-weight: 800; }
.cta-sub { font-size: 14px; opacity: 0.75; margin-top: 4px; }
.cta-btn { background: var(--accent); color: var(--footer-bg); font-size: 17px; }
.cta-btn:hover { background: #fff; transform: translateY(-1px); }

/* ---------------- 页脚（深色全宽） ---------------- */
.footer {
  margin-top: 48px;
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.72);
  padding: 34px 0 40px;
}
.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: var(--accent); }
.foot-sites a:hover { text-decoration: underline; }
.footer-copy { font-size: 12px; margin-top: 14px; opacity: 0.7; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .topbar-inner { justify-content: space-between; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
}
@media (max-width: 640px) {
  .intro { padding: 36px 0 4px; }
  .gallery { gap: 10px; grid-auto-rows: 130px; }
  .photoband-arrow { width: 32px; height: 32px; font-size: 17px; }
  .cta { 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: 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;
  }
}

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