:root {
  --primary: #1d4ed8;
  --primary-dark: #17337a;
  --accent: #f59e0b;
  --bg-soft: #f4f6fa;
  --footer-bg: #10192e;

  --text: #1f2937;
  --text-soft: #5b6472;
  --border: #d9dde4;
  --radius: 4px;
  --shell: 1180px;
  --indexbar-h: 52px;
  --serif: "Noto Serif SC", "Songti SC", "SimSun", "STSong", serif;
}

* {
  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%;
}

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

.btn {
  display: inline-block;
  padding: 12px 34px;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  letter-spacing: 2px;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--primary-dark);
}

.btn-light {
  background: #fff;
  color: var(--primary);
}

.btn-light:hover {
  background: var(--bg-soft);
}

/* ---------------- 报头（非 sticky） ---------------- */
.masthead {
  border-bottom: 3px double var(--text);
}

.masthead-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "kicker kicker" "name tel";
  align-items: end;
  gap: 6px 24px;
  padding-top: 26px;
  padding-bottom: 18px;
}

.masthead-kicker {
  grid-area: kicker;
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--text-soft);
}

.masthead-name {
  grid-area: name;
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 32px);
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.2;
}

.masthead-tel {
  grid-area: tel;
  text-align: right;
}

.masthead-tel[href^="tel:"]::before {
  display: none;
}

.tel-label {
  display: block;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--text-soft);
}

.tel-no {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

/* ---------------- 目录条（sticky 定高） ---------------- */
.indexbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--indexbar-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.indexbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--indexbar-h);
}

.indexbar-links {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.indexbar-links::-webkit-scrollbar {
  display: none;
}

.indexbar-links a {
  font-size: 14px;
  color: var(--text-soft);
  line-height: var(--indexbar-h);
  border-bottom: 2px solid transparent;
}

.indexbar-links a:hover {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

.indexbar-tel {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

/* ---------------- 头版：纯文字首屏 ---------------- */
.front {
  padding: 64px 0 56px;
}

.front-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 44px;
  align-items: stretch;
}

.front-eyebrow {
  font-size: 14px;
  letter-spacing: 6px;
  color: var(--primary);
  margin-bottom: 18px;
}

.front-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4.2vw, 48px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: 1px;
}

.front-side {
  border-left: 1px solid var(--border);
  padding-left: 36px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 20px;
}

.front-sub {
  font-size: 16px;
  color: var(--text-soft);
  line-height: 1.9;
}

.front-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.front-tags li {
  font-size: 13px;
  color: var(--text-soft);
  padding-bottom: 2px;
  border-bottom: 2px solid var(--accent);
}

.front-cta {
  align-self: flex-start;
}

/* ---------------- 照片带：banner 轮播（与版块同宽居中） ----------------
   高随图，JS(fit) 两段式封顶：h = 容器宽×首图比例，上限 = 视口高 − 目录条；
   min-height 仅作 JS 就位前占位，fit() 内会清零 */
.bandsec {
  padding-bottom: 56px;
}

.photoband {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.photoband-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;
}

.band-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 8;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.3);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.band-arrow:hover {
  background: rgba(15, 23, 42, 0.55);
}

.band-arrow.prev {
  left: 18px;
}

.band-arrow.next {
  right: 18px;
}

.band-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 8;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.band-dot {
  width: 26px;
  height: 3px;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.2s;
}

.band-dot.is-active {
  background: #fff;
}

/* ---------------- 内容版块 ---------------- */
.section {
  padding: 58px 0 64px;
  border-top: 1px solid var(--border);
  scroll-margin-top: calc(var(--indexbar-h) + 8px);
}

.section:first-of-type {
  border-top: 0;
}

.section:nth-of-type(even) {
  background: var(--bg-soft);
}

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 34px;
}

.sec-no {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

.sec-title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: 1px;
}

.sec-subtitle {
  font-size: 14px;
  color: var(--text-soft);
  margin-top: 6px;
}

.sec-rule {
  flex: 1;
  height: 1px;
  background: var(--border);
  align-self: center;
}

/* ---- 段落 / 关于 ---- */
.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;
}

.dropcap p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 700;
  float: left;
  line-height: 1;
  margin: 6px 10px 0 0;
  color: var(--primary);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(260px, 32%, 380px);
  gap: 40px;
  align-items: start;
}

.bizcard {
  border: 1px solid var(--border);
  background: #fff;
  padding: 10px;
}

.bizcard img {
  width: 100%;
}

.about-local {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

/* ---- stats：大数字横排 + 竖分隔 ---- */
.stats-row {
  display: flex;
  flex-wrap: wrap;
}

.stat {
  flex: 1 1 160px;
  padding: 6px 28px;
  border-left: 1px solid var(--border);
}

.stat:first-child {
  border-left: 0;
  padding-left: 0;
}

.stat-value {
  display: block;
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 14px;
  color: var(--text-soft);
}

/* ---- products：四列编辑网格，首格跨 2×2 ---- */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.prod {
  background: #fff;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}

.prod:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.1);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 22%, transparent);
}

.prod-lead {
  grid-column: span 2;
  grid-row: span 2;
}

.prod-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
}

.prod-lead .prod-img {
  aspect-ratio: auto;
  height: calc(100% - 46px);
}

.prod-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prod-name {
  height: 46px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 14px;
  border-top: 1px solid var(--border);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prod-lead .prod-name {
  font-size: 16px;
  font-weight: 700;
}

/* ---- faq：双栏分列 ---- */
.faq-cols {
  column-count: 2;
  column-gap: 44px;
}

.faq-item {
  break-inside: avoid;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.faq-q {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.faq-a {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.9;
}

/* ---- process：细体大序号四列 ---- */
.flow {
  display: flex; flex-wrap: wrap;
  gap: 30px;
}
.flow > * { flex: 1 1 210px; }

.flow-step {
  border-top: 3px solid var(--primary);
  padding-top: 14px;
}

.flow-no {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
}

.flow-title {
  font-size: 16px;
  font-weight: 700;
  margin: 10px 0 6px;
}

.flow-desc {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.8;
}

/* ---- 卡片型：四列剪贴卡，grid 等高，同行底部对齐 ---- */
.masonry {
  display: flex; flex-wrap: wrap;
  gap: 22px;
}
.masonry > * { flex: 1 1 210px; }

.clip {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  padding: 20px 20px 18px;
}

.clip-no {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--text-soft);
  letter-spacing: 2px;
}

.clip-title {
  font-size: 17px;
  font-weight: 700;
  margin: 8px 0 8px;
}

.clip-desc {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.9;
}

/* 5 列窄卡态（公共脚本挂 cols-5）：收窄列距与左右内边距，标题一行多容一个字 */
.masonry.cols-5 {
  gap: 22px 14px;
}

.masonry.cols-5 .clip {
  padding: 20px 14px 18px;
}

/* ---------------- CTA 带 ---------------- */
.cta {
  background: var(--primary);
  color: #fff;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 40px;
  padding-bottom: 40px;
}

.cta-text {
  font-family: var(--serif);
  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-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 30px;
}

.footer-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.9;
}

.footer-meta {
  text-align: right;
  font-size: 13px;
}

.foot-sites {
  margin-top: 10px;
  line-height: 2;
}

.foot-sites a {
  color: rgba(255, 255, 255, 0.72);
}

.foot-sites a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 960px) {
  .front {
    padding: 44px 0 40px;
  }

  .front-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .front-side {
    border-left: 0;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 24px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .bizcard {
    max-width: 420px;
  }

  .prod-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prod-lead {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .prod-lead .prod-img {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .faq-cols {
    column-count: 1;
  }
}

@media (max-width: 640px) {
  .masthead-inner {
    grid-template-areas: "kicker" "name" "tel";
    grid-template-columns: 1fr;
    align-items: start;
  }

  .masthead-tel {
    text-align: left;
  }

  .photoband {
    min-height: 180px;
  }

  .stat {
    flex-basis: 45%;
    padding: 6px 16px;
  }

  .prod-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-meta {
    text-align: left;
  }
}

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

@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;
  }
}