:root {
  --primary: #52616b;
  --primary-dark: #33393f;
  --accent: #c9a227;
  --bg-soft: #eceff1;
  --footer-bg: #24282c;
  --ink: #2b3138;
  --muted: #8a949c;
  --line: #cfd6db;
  --concrete: #f4f5f6;
  --wrap: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

.friend-links { display:none }

body {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
  color: var(--ink);
  background: #e4e7e9;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 26px; }
a { color: inherit; text-decoration: none; }

/* ---------- 名头行（非 sticky，结构横梁） ---------- */
.masthead { background: var(--concrete); border-bottom: 3px solid var(--ink); }
.masthead-inner { max-width: var(--wrap); margin: 0 auto; padding: 20px 26px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.logo { font-size: 22px; font-weight: 900; letter-spacing: 2px; }
.logo-region { display: inline-block; white-space: nowrap; font-size: 12px; font-weight: 800; margin-left: 10px; padding: 3px 11px; background: var(--ink); color: var(--concrete); vertical-align: 3px; letter-spacing: 1px; }
.masthead-tel { font-size: 15px; font-weight: 800; color: var(--concrete); background: var(--primary-dark); padding: 9px 22px; }
.masthead-tel:hover { background: var(--primary); }

/* ---------- sticky 索引条（轴网标尺） ---------- */
.navbar { position: sticky; top: 0; z-index: 50; background: rgba(244, 245, 246, .96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--ink); }
.navbar-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 26px; display: flex; flex-wrap: wrap; }
.navbar-inner a { padding: 12px 18px; font-size: 13.5px; font-weight: 700; color: var(--muted); letter-spacing: 2px; border-left: 1px solid var(--line); }
.navbar-inner a:last-child { border-right: 1px solid var(--line); }
.navbar-inner a:hover { color: var(--ink); background: var(--bg-soft); }
.nav-idx { font-size: 11px; font-weight: 900; color: var(--accent); margin-right: 6px; letter-spacing: 1px; }

/* ---------- 首屏 ---------- */
.hero { padding: 70px 0 52px; background: var(--concrete); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 7fr 4fr; gap: 44px; align-items: start; }
.hero-title { font-size: clamp(30px, 4.8vw, 56px); font-weight: 900; line-height: 1.14; letter-spacing: 1px; }
.hero-sub { margin-top: 18px; font-size: 16.5px; color: var(--muted); max-width: 620px; }
.hero-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0; margin-top: 24px; border: 1px solid var(--ink); width: fit-content; }
.hero-tags li { padding: 7px 16px; font-size: 13px; font-weight: 700; border-right: 1px solid var(--ink); }
.hero-tags li:last-child { border-right: 0; }
.btn { display: inline-block; margin-top: 30px; padding: 15px 48px; background: var(--ink); color: var(--concrete); font-size: 16px; font-weight: 900; letter-spacing: 3px; transition: background .18s, transform .18s; }
.btn:hover { background: var(--accent); color: var(--ink); }
.hero-meta { position: relative; background: var(--concrete); border: 1px solid var(--ink); padding: 10px 24px; box-shadow: 8px 8px 0 var(--line); }
.hero-meta::before { content: "SPEC"; position: absolute; top: -11px; left: 18px; background: var(--concrete); padding: 0 10px; font-size: 11px; font-weight: 900; letter-spacing: 4px; color: var(--muted); }
.meta-row { display: flex; gap: 16px; padding: 13px 2px; }
.meta-row + .meta-row { border-top: 1px solid var(--line); }
.meta-label { flex: none; font-size: 12.5px; font-weight: 700; color: var(--muted); letter-spacing: 3px; }
.meta-value { font-size: 14px; font-weight: 700; }
.meta-value a { color: var(--primary); border-bottom: 2px solid var(--accent); }

/* ---------- 照片带（实景剖面窗） ---------- */
.bandsec { padding: 10px 0 0; }
.photoband { position: relative; width: 100%; overflow: hidden; min-height: 200px; background: var(--concrete); border: 1px solid var(--ink); box-shadow: 10px 10px 0 var(--line); }
.photoband-track { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; }
.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: 42px; height: 42px; display: flex; align-items: center; justify-content: center; line-height: 1; border: 1px solid var(--ink); background: rgba(244, 245, 246, .94); color: var(--ink); font-size: 20px; cursor: pointer; }
.photoband-arrow:hover { background: var(--accent); }
.photoband-prev { left: 16px; }
.photoband-next { right: 16px; }
.photoband-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; gap: 6px; justify-content: center; z-index: 5; }
.photoband-dot { width: 18px; height: 5px; border: 1px solid var(--ink); border-radius: 0; background: rgba(244, 245, 246, .9); cursor: pointer; }
.photoband-dot.is-active { background: var(--accent); }

/* ---------- 版块（浇筑分区） ---------- */
.block { padding: 58px 0; }
.block-alt { background: var(--bg-soft); }
.tab { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; border-left: 6px solid var(--accent); padding-left: 16px; }
.deco { align-self: center; width: 10px; height: 10px; background: var(--ink); }
.tab-no { font-size: clamp(26px, 3.6vw, 40px); font-weight: 900; color: var(--line); letter-spacing: 1px; line-height: 1; }
.tab-title { font-size: clamp(21px, 3vw, 31px); font-weight: 900; line-height: 1.2; letter-spacing: 1px; }
.folder-body { background: var(--concrete); border: 1px solid var(--ink); padding: 40px 38px; box-shadow: 8px 8px 0 var(--line); }
.block-subtitle { margin: -10px 0 24px; font-size: 14px; color: var(--muted); letter-spacing: 1px; }

/* ---------- 段落 ---------- */
.prose { max-width: 72ch; font-size: 16px; color: #4c545c; }
.about-local { margin-top: 16px; }
.about-local a { color: var(--primary); font-weight: 700; border-bottom: 2px solid var(--accent); }
.bizcard { max-width: 430px; margin-top: 24px; background: var(--bg-soft); border: 1px solid var(--line); padding: 10px; }
.bizcard img { width: 100%; display: block; }

/* ---------- 指标（工程量表） ---------- */
.stats { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border: 1px solid var(--ink); }
.stat { padding: 28px 16px; text-align: center; border-right: 1px solid var(--ink); background: var(--bg-soft); }
.stat:last-child { border-right: 0; }
.stat-value { display: block; font-size: clamp(30px, 4.4vw, 46px); font-weight: 900; color: var(--primary-dark); line-height: 1.05; }
.stat-label { display: block; margin-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--muted); letter-spacing: 3px; }

/* ---------- 产品（样板间） ---------- */
.prod-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.prod { background: var(--concrete); border: 1px solid var(--ink); overflow: hidden; transition: box-shadow .18s; }
.prod:hover { box-shadow: 6px 6px 0 var(--accent); }
.prod img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; border-bottom: 1px solid var(--ink); }
.prod-name { padding: 12px 15px; font-size: 15px; font-weight: 700; }

/* ---------- 问答 ---------- */
.faq { list-style: none; display: grid; gap: 0; max-width: 860px; border: 1px solid var(--ink); }
.faq-item { background: var(--concrete); padding: 20px 26px; border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-q { font-size: 16px; font-weight: 800; }
.faq-q::before { content: "Q "; color: var(--accent); font-weight: 900; }
.faq-a { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* ---------- 流程（施工工序） ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.step { background: var(--bg-soft); border: 1px solid var(--line); border-top: 3px solid var(--ink); padding: 26px 20px; }
.step-no { display: inline-block; font-size: 22px; font-weight: 900; color: var(--accent); line-height: 1; letter-spacing: 1px; }
.step-title { margin-top: 12px; font-size: 17px; font-weight: 800; }
.step-desc { margin-top: 6px; color: var(--muted); font-size: 14px; }

/* ---------- 卡片（构件单元） ---------- */
.card-grid { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; }
.card-grid > * { flex: 1 1 210px; }


.card { background: var(--bg-soft); border: 1px solid var(--line); border-left: 4px solid var(--primary); padding: 28px 24px; transition: border-color .18s, box-shadow .18s; }
.card:hover { border-left-color: var(--accent); box-shadow: 6px 6px 0 var(--line); }
.card-title { font-size: 17px; font-weight: 800; }
.card-desc { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* ---------- CTA（竣工交付） ---------- */
.cta { padding: 70px 0; }
.cta .wrap { background: var(--primary-dark); padding: 56px 30px; text-align: center; color: var(--concrete); box-shadow: 10px 10px 0 var(--line); border-top: 6px solid var(--accent); }
.cta-title { font-size: clamp(24px, 3.6vw, 38px); font-weight: 900; letter-spacing: 3px; }
.cta-sub { margin-top: 10px; font-size: 15px; opacity: .78; letter-spacing: 1px; }
.cta-btn { margin-top: 26px; background: var(--accent); color: var(--ink); }
.cta-btn:hover { background: var(--concrete); }

/* ---------- 页脚 ---------- */
.footer { background: var(--footer-bg); color: rgba(244, 245, 246, .8); padding: 46px 0 36px; border-top: 3px solid var(--accent); }
.footer-name { font-size: 20px; font-weight: 900; color: #fff; letter-spacing: 2px; }
.footer-desc { margin-top: 12px; font-size: 14px; opacity: .64; max-width: 60ch; }
.foot-sites { margin-top: 16px; font-size: 14px; }
.foot-sites a { color: #fff; text-decoration: underline; }
.footer-copy { margin-top: 18px; font-size: 13px; opacity: .48; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 720px) {
  .navbar-inner a { padding: 10px 11px; font-size: 12.5px; }
  .nav-idx { display: none; }
  .folder-body { padding: 28px 20px; }
  /* 标签折行时每行拉伸铺满，行间用 border-top 分隔，避免外框内出现空洞 */
  .hero-tags { width: 100%; }
  .hero-tags li { flex: 1 1 auto; text-align: center; border-top: 1px solid var(--ink); margin-top: -1px; }
}

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

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