/* xjjlq.com 华狮现浇建造网（现浇混凝土剪力墙） - 全站样式 */
:root {
  --primary: #1a56db;
  --primary-dark: #123a94;
  --steel: #334155;
  --ink: #1e293b;
  --muted: #64748b;
  --bg: #f6f8fb;
  --card: #ffffff;
  --line: #e2e8f0;
  --accent: #f59e0b;
  --radius: 12px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* 顶部通栏 */
.topbar {
  background: var(--steel);
  color: #cbd5e1;
  font-size: 13px;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  padding-bottom: 6px;
}
.topbar strong { color: #fff; font-size: 15px; letter-spacing: .5px; }

/* 导航 */
.header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
}
.logo img.mark {
  width: 40px; height: 40px; object-fit: contain;
  background: #fff; border-radius: 8px; flex: none;
}
.logo .mark {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex: none;
}
.logo small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.nav { display: flex; gap: 2px; flex-wrap: wrap; }
.nav a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--steel);
}
.nav a:hover, .nav a.active { background: #eef3ff; color: var(--primary); font-weight: 600; }
/* nav-tools-2026-11-07：导航加「造价估算」「站内搜索」两项后，收紧间距，搜索项做次一级处理。
   nav-wenda-2026-11-08：再加班「建房问答」，共 11 项 + 电话，1180 容器内需 1007px 而 logo 占 190px，
   会折到第二行；水平内边距 11→9px 省 48px，回到单行（headerH 66），导航项仍不换行。 */
.nav a { padding: 8px 9px; }
.nav a.nav-mini { font-size: 13.5px; padding: 8px 8px; color: var(--muted); }
.nav .nav-tel { color: #fff; background: var(--primary); font-weight: 600; }
.nav .nav-tel:hover { background: var(--primary-dark); }

/* Hero */
.hero {
  background: linear-gradient(120deg, #0f2c66 0%, #1a56db 55%, #2f7fe8 100%);
  color: #fff;
  padding: 64px 0 72px;
}
.hero h1 { font-size: 34px; line-height: 1.35; margin-bottom: 14px; }
.hero p { font-size: 17px; color: #d7e4ff; max-width: 720px; }
.hero .btns { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
}
.btn-light { background: #fff; color: var(--primary); }
.btn-ghost { border: 1px solid rgba(255,255,255,.6); color: #fff; }
.btn-primary { background: var(--primary); color: #fff; }
.hero-tags { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-tags span {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 14px;
}

/* 区块 */
.section { padding: 56px 0; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 { font-size: 27px; }
.section-head p { color: var(--muted); margin-top: 8px; }
.section-head .en { color: #9db6e8; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; }

/* 产品卡 */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(15,44,102,.12); }
.ph {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 2px;
  text-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.ph-1 { background: linear-gradient(135deg,#334155,#64748b); }
.ph-2 { background: linear-gradient(135deg,#1a56db,#38bdf8); }
.ph-3 { background: linear-gradient(135deg,#047857,#34d399); }
.ph-4 { background: linear-gradient(135deg,#b45309,#fbbf24); }
.ph-5 { background: linear-gradient(135deg,#6d28d9,#a78bfa); }
.ph-6 { background: linear-gradient(135deg,#9f1239,#fb7185); }
.card .body { padding: 18px; }
.card h3 { font-size: 18px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 14px; }
.card .more { display: inline-block; margin-top: 10px; color: var(--primary); font-size: 14px; font-weight: 600; }

/* 优势 */
.feat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feat .item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}
.feat .num { font-size: 30px; font-weight: 800; color: var(--primary); }
.feat h4 { margin-top: 6px; font-size: 16px; }
.feat p { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* 流程 */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: step; }
.steps .s {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  position: relative;
}
.steps .s::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 8px;
}
.steps h4 { font-size: 15px; }
.steps p { font-size: 12.5px; color: var(--muted); }

/* 内容页 */
.page-hero {
  background: linear-gradient(120deg, #0f2c66, #1a56db);
  color: #fff;
  padding: 44px 0;
}
.page-hero h1 { font-size: 28px; }
.page-hero p { color: #d7e4ff; margin-top: 6px; font-size: 15px; }
.breadcrumb { font-size: 13px; margin-bottom: 8px; color: #b9cdf5; }
.prose { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.prose h2 { font-size: 21px; margin: 26px 0 12px; padding-left: 12px; border-left: 4px solid var(--primary); }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 12px; color: #374151; }
.prose ul { margin: 0 0 12px 22px; color: #374151; }
.prose li { margin-bottom: 6px; }
table.spec { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14.5px; }
table.spec th, table.spec td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
table.spec th { background: #eef3ff; color: var(--ink); }

/* FAQ */
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* CTA 条 */
.cta-band {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 40px 0;
  text-align: center;
}
.cta-band h2 { font-size: 24px; margin-bottom: 8px; }
.cta-band p { color: #d7e4ff; margin-bottom: 18px; }
.cta-band .tel { font-size: 30px; font-weight: 800; letter-spacing: 1px; }
/* cta-alt-2026-11-09 CTA 次要入口：先算价再打电话 */
.cta-band .cta-alt { margin: -8px 0 14px; font-size: 15px; }
.cta-band .cta-alt a { color: #ffd766; border-bottom: 1px solid rgba(255,215,102,.5); padding-bottom: 1px; }
.cta-band .cta-alt a:hover { color: #fff; border-bottom-color: #fff; }
@media (max-width: 600px) { .cta-band .cta-alt { margin: -6px 0 12px; font-size: 14px; } }
/* art-nav-2026-11-10 资讯页上下篇导航 */
.art-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 26px 0 4px; }
.art-nav a, .art-nav .empty {
  display: block; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; background: #fff; transition: border-color .15s;
}
.art-nav a:hover { border-color: var(--primary); }
.art-nav em { display: block; font-style: normal; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.art-nav a span { display: block; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.5; }
.art-nav .next { text-align: right; }
.art-nav .empty { visibility: hidden; }
@media (max-width: 600px) {
  .art-nav { grid-template-columns: 1fr; gap: 10px; margin: 20px 0 2px; }
  .art-nav .empty { display: none; }
  .art-nav .next { text-align: left; }
}

/* 页脚 */
.footer { background: #111c33; color: #94a3b8; padding: 44px 0 20px; font-size: 14px; }
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 28px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 12px; }
.footer a:hover { color: #fff; }
.footer li { list-style: none; margin-bottom: 8px; }
.footer .bottom {
  border-top: 1px solid #24344f;
  margin-top: 28px;
  padding-top: 16px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
}
.footer .bottom a { color: #93b4f0; }

/* 浮动电话（移动端） */
.float-tel {
  position: fixed;
  right: 16px;
  bottom: 20px;
  z-index: 90;
  background: var(--primary);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(26,86,219,.4);
}

/* nav-scroll-2026-11-07：导航项多，容器装不下会折行，改单行横向滑动；
   电话项 sticky 贴右侧常驻。2026-11-08 共 11 项，断点 1100→1180。 */
@media (max-width: 1180px) {
  .header .wrap { justify-content: flex-start; }
  .nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    flex: 1 1 100%;
    width: 100%;
    gap: 2px;
    padding: 2px 0 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: 0 0 auto; padding: 7px 11px; font-size: 14px; white-space: nowrap; }
  .nav a.nav-mini { font-size: 13px; padding: 7px 9px; }
  .nav .nav-tel { position: sticky; right: 0; margin-left: 6px; box-shadow: -8px 0 10px -6px rgba(15,23,42,.18); }
}


/* 响应式 */
@media (max-width: 900px) {
  .grid-3, .grid-4, .feat { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 26px; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4, .feat, .steps { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr; }
  /* 移动端底部已有通栏电话，导航里的电话项收起，把横向空间留给菜单 */
  .nav .nav-tel { display: none; }
  /* nav-mobile-2026-11-07：移动端不再隐藏导航，改为单行横向滑动 */
  .nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    gap: 2px;
    padding: 2px 0 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: 0 0 auto; padding: 7px 10px; font-size: 14px; white-space: nowrap; }
  .nav .nav-tel { margin-left: 4px; }
  .hero { padding: 44px 0 52px; }
  .prose { padding: 20px; }
  .topbar .hide-m { display: none; }
  table.spec { font-size: 12.5px; }
  table.spec th, table.spec td { padding: 6px 5px; }
  /* float-bar-2026-11-07：窄屏把悬浮药丸改成底部通栏，避免遮挡正文与页脚备案号 */
  .float-tel {
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 16px;
    box-shadow: 0 6px 18px rgba(26,86,219,.28);
  }
  body { padding-bottom: 68px; }
}

/* ==== 资讯列表页分类 start ==== */
.news-intro { color: var(--muted); font-size: 15px; margin-bottom: 22px; max-width: 860px; }
.news-intro b { color: var(--primary); font-size: 17px; }

/* 分类导航 */
.cat-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.cat-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--ink); font-size: 14.5px; font-weight: 500;
  transition: border-color .18s, color .18s, background .18s;
}
.cat-pill span {
  color: var(--muted); font-size: 12.5px; background: var(--bg);
  border-radius: 999px; padding: 1px 7px; transition: .18s;
}
.cat-pill:hover { border-color: var(--primary); color: var(--primary); }
.cat-pill:hover span { background: #eef3ff; color: var(--primary); }

/* 分类区块 */
.cat-block {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px 8px; margin-bottom: 20px; scroll-margin-top: 16px;
}
.cat-block:target { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,86,219,.08); }
.cat-title {
  font-size: 21px; display: flex; align-items: baseline; gap: 10px;
  padding-left: 12px; border-left: 4px solid var(--primary); line-height: 1.4;
}
.cat-num { font-size: 13px; font-weight: 400; color: var(--muted); }
.cat-desc { color: var(--muted); font-size: 14.5px; margin: 10px 0 4px; }

/* 文章条目 */
.art-list { list-style: none; margin: 0; padding: 0; }
.art-list li { padding: 14px 0; border-top: 1px solid var(--line); }
.art-list li:first-child { border-top: none; }
.art-list a { color: var(--primary); font-size: 16.5px; font-weight: 600; line-height: 1.5; }
.art-list a:hover { color: var(--primary-dark); text-decoration: underline; }
.art-list p { color: var(--muted); font-size: 14px; line-height: 1.65; margin-top: 4px; }

@media (max-width: 600px) {
  .cat-nav { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .cat-pill { flex: 0 0 auto; }
  .cat-block { padding: 20px 16px 4px; }
  .cat-title { font-size: 18.5px; }
  .art-list a { font-size: 15.5px; }
  .art-list p { font-size: 13.5px; }
}
/* ==== 资讯列表页分类 end ==== */

/* rel-plan-2026-10-30 */
.rel-plan { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 14px 0 22px; }
.rel-plan a { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px; text-decoration: none; background: #fff; transition: border-color .15s, box-shadow .15s; }
.rel-plan a:hover { border-color: var(--primary); box-shadow: 0 4px 14px rgba(0,0,0,.07); }
.rel-plan img { width: 104px; height: 68px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; }
.rel-plan b { display: block; color: var(--primary-dark); font-size: 14.5px; margin-bottom: 3px; }
.rel-plan em { font-style: normal; color: var(--muted); font-size: 12.5px; line-height: 1.6; display: block; }
@media (max-width: 640px) { .rel-plan { grid-template-columns: 1fr; } .rel-plan img { width: 88px; height: 58px; } }
/* /rel-plan-2026-10-30 */

/* plan-home-2026-10-30 */
.plan-home { margin-top: 4px; }
.plan-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; transition: box-shadow .18s, transform .18s; }
.plan-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.10); transform: translateY(-2px); }
.plan-card img { width: 100%; display: block; aspect-ratio: 16 / 10; object-fit: cover; }
.plan-card .body { padding: 14px 16px 16px; }
.plan-card b { display: block; color: var(--primary-dark); font-size: 16px; margin-bottom: 4px; }
.plan-card em { font-style: normal; display: block; color: var(--primary); font-size: 13.5px; }
.plan-more { display: inline-block; margin-top: 20px; background: var(--primary); color: #fff;
  padding: 11px 26px; border-radius: 6px; text-decoration: none; font-size: 15px; }
.plan-more:hover { background: var(--primary-dark); }
/* /plan-home-2026-10-30 */

/* art-date-2026-11-04 */
.art-list .art-date { display: block; color: var(--muted); font-size: 12px;
  font-weight: 400; letter-spacing: .02em; margin-bottom: 3px; }
@media (max-width: 600px) { .art-list .art-date { font-size: 11.5px; } }
