/* =========================================
   solutions/detail/ 详情页 —— 独立自包含样式表
   --------------------------------------------------
   仅供以下两个规格详情页使用，且为页面唯一引用的本地 CSS：
     - crimped-wire-mesh-specifications.html
     - noise-barrier-specifications.html
     - steel-grating-specifications.html
     - fencing-specifications.html
   来源整合：
     - 顶部导航 / 面包屑 / 按钮基元 / 页脚结构：产品详情页
       products/product-detail/product-detail.css（保证顶部与
       Crimped-Wire-Mesh-product-detail.html 完全一致）
     - 黄色 CTA 横幅 / bg-dark / hero 基础 / btn-dark：
       solutions/solutions.css
     - 规格专题组件（参数表 / weave / hook / 决策树 / FAQ 等）：
       原 solutions/detail/detail.css
     - Cookie  consent 横幅样式：cookie-consent.css（已内联，
       故本页无需再引入 cookie-consent.css）
   变量（--primary 等）采用产品详情页取值，确保顶部视觉一致。
========================================= */

/* =========================================
   全局变量及基础重置 (CSS Variables & Reset)
========================================= */
:root {
  --primary: #FFB800;        /* 亮黄色强调色（与产品详情页一致） */
  --primary-hover: #e0a200;
  --dark-bg: #101820;        /* 深灰/黑色工业背景 */
  --darker-bg: #0a0f14;
  --light-bg: #f3f4f6;       /* 浅灰色背景 */
  --card-bg: #1f2937;
  --white: #ffffff;
  --text-white: #ffffff;
  --text-light-gray: #d1d5db;
  --text-dark: #1f2937;
  --border-color: rgba(255, 255, 255, 0.1);
  --transition: all 0.3s ease;
  --border-radius: 6px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--light-bg);
  color: var(--text-dark);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul { list-style: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 800;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding { padding: 5rem 0; }
.bg-light { background-color: var(--light-bg); }
.text-center { text-align: center; }

/* =========================================
   区块标题 (Section Header & Tag)
========================================= */
.section-tag {
  display: inline-block;
  color: var(--primary-hover);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.section-header {
  max-width: 700px;
  margin: 0 auto 3rem auto;
}

.section-header h2 {
  font-size: 2.3rem;
  color: var(--dark-bg);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: #4b5563;
  font-size: 1.05rem;
}

.section-header .section-tag {
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 1px;
}

/* =========================================
   通用按钮 (Buttons)
========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  text-transform: uppercase;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--dark-bg);
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  color: var(--white);
}

/* 用于黄色 CTA 横幅上的次级按钮：深色描边在黄底上对比清晰 */
.btn-outline {
  background: transparent;
  color: var(--dark-bg);
  border: 2px solid var(--dark-bg);
}
.btn-outline:hover {
  background: var(--dark-bg);
  color: var(--white);
}

.btn-dark {
  background-color: var(--dark-bg);
  color: var(--white);
}
.btn-dark:hover {
  background-color: var(--darker-bg);
}

.btn-large { padding: 1rem 2.5rem; font-size: 1rem; }

/* =========================================
   顶部导航栏 (Navbar) —— 与产品详情页完全一致
========================================= */
/* 顶部导航：与首页一致——悬浮于 Hero 之上，半透明毛玻璃（改样式请同步 style.css 首页导航） */
.navbar-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(16, 24, 32, 0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-bottom: 1px solid var(--border-color);
}

.navbar-wrapper .navbar {
  position: static;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
}
.navbar {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-color);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo-icon {
  color: var(--primary);
  font-style: italic;
  letter-spacing: -2px;
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  color: var(--text-white);
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}
.nav-arrow { font-size: 0.6rem; }
.hamburger {
  display: none;
  color: var(--text-white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* 移动端菜单 */
.mobile-menu {
  display: none;
  flex-direction: column;
  background-color: var(--darker-bg);
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  padding: 1rem 20px;
  border-top: 1px solid var(--border-color);
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
  color: var(--text-white);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
}
.mobile-menu a:last-child {
  border-bottom: none;
  margin-top: 1rem;
}

/* =========================================
   面包屑导航 (Breadcrumb) —— 深色，与产品详情页一致
========================================= */
.breadcrumb-bar {
  background-color: var(--darker-bg);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-light-gray);
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .separator { color: var(--border-color); }
.breadcrumb .current {
  color: var(--primary);
  font-weight: 600;
}

/* =========================================
   Hero / 内容区基础排版
========================================= */
.hero-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bg-dark {
  background-color: var(--dark-bg);
  color: var(--text-white);
}
.solutions-hero { padding: 4rem 0; }

/* 深色 Hero 内的段落需为浅色以保证可读性 */
.hero-section .section-header p {
  color: var(--text-light-gray);
}

.content-section {
  background-color: #fff;
}

.grid-split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 900px) {
  .grid-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.content-text h2,
.content-text h3 {
  margin-bottom: 1rem;
  line-height: 1.3;
}
.content-text p {
  line-height: 1.7;
  color: #333;
  margin-bottom: 1rem;
}
.content-text strong {
  color: var(--primary);
}

.info-box {
  background-color: #fff;
  border-left: 4px solid var(--primary);
  padding: 1.5rem 1.75rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.info-box h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.specs-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.specs-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
  line-height: 1.5;
  font-size: 0.9375rem;
  display: flex;
  gap: 0.75rem;
}
.specs-list li:last-child { border-bottom: none; }
.specs-list li i {
  color: var(--primary);
  margin-top: 4px;
  flex-shrink: 0;
}

/* =========================================
   参数表 (Spec Table)
========================================= */
.table-wrap {
  overflow-x: auto;
  margin: 2rem 0 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  font-size: 0.9375rem;
}
.spec-table th {
  background-color: #1a1a1a;
  color: #fff;
  padding: 1rem 0.75rem;
  text-align: left;
  font-weight: 500;
  white-space: nowrap;
}
.spec-table td {
  padding: 0.875rem 0.75rem;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}
.spec-table.compact th,
.spec-table.compact td {
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
}
.spec-table tr:hover { background-color: #fafafa; }
.spec-table tr.highlight-row { background-color: #fff7e8; }
.spec-table tr.highlight-row:hover { background-color: #fff0d0; }
.table-note {
  font-size: 0.8125rem;
  color: #777;
  font-style: italic;
  margin-top: 0.75rem;
}

/* =========================================
   提示框 (Callout)
========================================= */
.callout {
  display: flex;
  gap: 1rem;
  background-color: #fff7e8;
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.5rem;
  border-radius: 6px;
  margin-top: 2rem;
}
.callout i {
  color: var(--primary);
  font-size: 1.25rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.callout a {
  color: var(--primary);
  font-weight: 500;
}

/* =========================================
   编织类型卡片 (Weave Cards)
========================================= */
.weave-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  margin: 2rem 0;
}
@media (max-width: 900px) {
  .weave-grid { grid-template-columns: 1fr; }
}
.weave-card {
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  transition: border-color 0.2s, transform 0.2s;
}
.weave-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.weave-num {
  display: inline-block;
  background-color: var(--primary);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}
.weave-card h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.25rem;
  color: #1a1a1a;
}
.weave-summary {
  color: #555;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}
.weave-props {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #f0f0f0;
  padding-top: 1rem;
}
.weave-props li {
  padding: 0.375rem 0;
  font-size: 0.875rem;
  color: #444;
  line-height: 1.5;
}
.weave-props li strong {
  color: #1a1a1a;
  margin-right: 0.25rem;
}
.comparison-table-wrap { margin-top: 3rem; }
.comparison-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

/* =========================================
   边缘/面板卡片 (Hook Cards)
========================================= */
.hook-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  margin: 2rem 0;
}
@media (max-width: 900px) {
  .hook-grid { grid-template-columns: 1fr; }
}
.hook-card {
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
}
.hook-card h3 {
  margin: 0 0 0.75rem 0;
  color: #1a1a1a;
}
.hook-illustration {
  width: 100px;
  height: 100px;
  background-color: #fff7e8;
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem 0 1.5rem;
  font-size: 3rem;
}

/* =========================================
   选型决策树 (Decision Tree)
========================================= */
.decision-tree {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}
.step {
  display: flex;
  gap: 1.5rem;
  background-color: #fff;
  padding: 1.75rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary);
}
.step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background-color: var(--primary);
  color: #1a1a1a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}
.step-content h4 {
  margin: 0 0 0.5rem 0;
  color: #1a1a1a;
}
.step-content p {
  margin: 0;
  line-height: 1.6;
  color: #444;
  font-size: 0.9375rem;
}

/* =========================================
   FAQ 折叠列表
========================================= */
.faq-list {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 0;
}
.faq-item {
  background-color: #fff;
  border-radius: 8px;
  border: 1px solid #e8e8e8;
  overflow: hidden;
}
.faq-item summary {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 500;
  color: #1a1a1a;
  font-size: 1rem;
  list-style: none;
  position: relative;
  transition: background-color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq-item summary:hover { background-color: #fafafa; }
.faq-answer {
  padding: 0 1.5rem 1.5rem;
  line-height: 1.7;
  color: #444;
}
.faq-answer p { margin: 0; }

.mt-32 { margin-top: 2rem; }

/* =========================================
   CTA 按钮组（双按钮等高，行布局）
========================================= */
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1rem;
}
.cta-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 58px;
  white-space: nowrap;
}

/* =========================================
   引导转化区 (CTA Banner) —— 黄色横幅，保留规格页原样式
========================================= */
.cta-banner {
  background-color: var(--primary);
  padding: 4rem 0;
}
.cta-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}
.cta-banner h3 {
  font-size: 1.8rem;
  color: var(--dark-bg);
  max-width: 70%;
}

/* =========================================
   页脚 (Footer) —— 深色，与站点一致
========================================= */
footer {
  background-color: var(--dark-bg);
  color: var(--text-light-gray);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

.brand-col .logo {
  display: inline-block;
  margin-bottom: 1.5rem;
}

.brand-col .logo img {
  width: 200px;
  height: auto;
}

.brand-col p {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.mini-stats {
  display: flex;
  gap: 1.5rem;
}

.mini-stats div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-white);
}

.mini-stats i {
  color: var(--primary);
  font-size: 1.25rem;
}

.footer-col h4 {
  color: var(--text-white);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--text-light-gray);
  text-decoration: none;
  transition: var(--transition, color 0.3s ease);
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.contact-details li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  font-size: 0.875rem;
}

.contact-details i {
  color: var(--primary);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.contact-details a {
  color: var(--text-light-gray);
  text-decoration: none;
  transition: var(--transition, color 0.3s ease);
}

.contact-details a:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light-gray);
  text-decoration: none;
  transition: var(--transition, all 0.3s ease);
}

.social-links a:hover {
  background-color: var(--primary);
  color: var(--dark-bg);
  border-color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.legal-links a {
  color: var(--text-light-gray);
  text-decoration: none;
  transition: var(--transition, color 0.3s ease);
}

.legal-links a:hover {
  color: var(--primary);
}

.legal-links .divider {
  margin: 0 0.5rem;
  color: var(--border-color);
}

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   Cookie Consent Banner（内联，原 cookie-consent.css）
========================================= */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000;
  background-color: #111827;
  color: #f3f4f6;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
  padding: 1rem 1.25rem;
  transform: translateY(100%);
  transition: transform 0.35s ease, opacity 0.35s ease;
  opacity: 0;
}
.cookie-consent.is-visible {
  transform: translateY(0);
  opacity: 1;
}
.cookie-consent-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.cookie-consent-text { flex: 1; min-width: 240px; }
.cookie-consent-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
}
.cookie-consent-text p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #9ca3af;
}
.cookie-consent-text a {
  color: #fbbf24;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-consent-text a:hover { color: #f59e0b; }
.cookie-consent-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  padding: 0.65rem 1.25rem;
  font-family: "Inter", sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid transparent;
}
.cookie-btn-primary {
  background-color: #fbbf24;
  color: #111827;
  border-color: #fbbf24;
}
.cookie-btn-primary:hover {
  background-color: #d97706;
  border-color: #d97706;
}
.cookie-btn-outline {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}
.cookie-btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: #ffffff;
}
@media (max-width: 768px) {
  .cookie-consent {
    bottom: 55px;
    padding: 1rem;
  }
  .cookie-consent-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  .cookie-consent-actions { width: 100%; }
  .cookie-btn { flex: 1; }
}

/* =========================================
   响应式设计 (Media Queries)
========================================= */
@media (max-width: 992px) {
  .nav-links,
  .nav-actions { display: none; }
  .hamburger { display: block; }
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .cta-flex {
    flex-direction: column;
    text-align: center;
  }
  .cta-banner h3 { max-width: 100%; }
  .cta-actions { width: 100%; }
  .cta-actions .btn {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 0.95rem;
  }
}



/* 页脚微信悬停二维码弹层（与 style.css 保持一致） */
.footer-wechat {
    position: relative;
}

.footer-wechat-trigger {
    cursor: pointer;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.4);
}

.footer-qr-pop {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 0;
    z-index: 999;

    background: #ffffff;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    border: 1px solid #e5e7eb;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;

    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;

    pointer-events: none;
}

.footer-qr-pop::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 28px;
    border: 8px solid transparent;
    border-top-color: #ffffff;
}

.footer-wechat:hover .footer-qr-pop {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.footer-qr-pop img {
    display: block;
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
}

.footer-qr-pop span {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

/* 导航栏 logo：桌面 100px 高，移动端自适应缩小（与 style.css 保持一致） */
.navbar .logo img {
  height: 100px;
  width: auto;
  max-width: none;
}

@media (max-width: 768px) {
  .navbar .logo img {
    height: 56px;
  }
}

/* 导航栏字号放大（与全站导航统一） */
.nav-actions .btn {
  font-size: 1rem;
}

/* =========================================
   技术文章 · 列表页
========================================= */
.page-hero {
  height: 45vh;
  min-height: 430px;
  padding-top: 150px; /* 悬浮导航高度补偿 */
  display: flex;
  align-items: center;
  background:
    linear-gradient(rgba(16, 24, 32, 0.88), rgba(16, 24, 32, 0.88)),
    url("/articles/img/jt646-2025-noise-barrier-guide-cover.webp")
      center / cover no-repeat;
  text-align: center;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.article-card {
  background-color: var(--white);
  border: 1px solid var(--border-gray, #e5e7eb);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.article-card .card-image-wrapper {
  position: relative;
  overflow: hidden;
}

.article-card .card-image-wrapper::after {
  /* 图片底部渐隐，过渡到白色卡体 */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 46px;
  background: linear-gradient(to top, rgba(16, 24, 32, 0.18), transparent);
  pointer-events: none;
}

.article-card .card-image-wrapper img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.article-card:hover .card-image-wrapper img {
  transform: scale(1.05);
}

/* 图片左上角分类徽章 */
.article-card .category-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background-color: var(--primary, #fbbf24);
  color: #111827;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.article-card .card-content {
  padding: 1.5rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card .card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-gray, #6b7280);
  margin-bottom: 0.875rem;
}

.article-card .card-meta i {
  color: var(--primary-hover, #d97706);
}

.article-card h2 {
  font-size: 1.25rem;
  line-height: 1.45;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card h2 a {
  color: var(--text-dark);
  transition: color 0.3s ease;
}

.article-card h2 a:hover {
  color: var(--primary-hover, #d97706);
}

.article-card .card-excerpt {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-gray, #4b5563);
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card .card-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--primary-hover, #d97706);
}

.article-card .card-more i {
  transition: transform 0.3s ease;
}

.article-card:hover .card-more i {
  transform: translateX(4px);
}

/* =========================================
   技术文章 · 详情页
========================================= */
.article-hero {
  background-color: var(--darker-bg, #0a0f14);
  padding: 7rem 0 3.5rem;
  background-image:
    linear-gradient(rgba(10, 15, 20, 0.92), rgba(10, 15, 20, 0.96)),
    url("/articles/img/jt646-2025-noise-barrier-guide-cover.webp");
  background-size: cover;
  background-position: center;
}

.article-hero h1 {
  color: var(--text-white, #fff);
  font-size: 2rem;
  line-height: 1.4;
  margin-bottom: 1.25rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-light-gray, #9ca3af);
}

.article-meta i {
  color: var(--primary);
  margin-right: 0.35rem;
}

.article-container {
  max-width: 900px;
}

.article-main {
  background-color: var(--white);
}

.article-body {
  font-size: 1rem;
  color: var(--text-dark, #1f2937);
  line-height: 1.85;
}

.article-body h2 {
  font-size: 1.5rem;
  line-height: 1.4;
  margin: 2.5rem 0 1.25rem;
  padding-left: 0.75rem;
  border-left: 4px solid var(--primary);
}

.article-body h3 {
  font-size: 1.1875rem;
  margin: 2rem 0 1rem;
}

.article-body p {
  margin-bottom: 1.1rem;
}

.article-body strong {
  color: var(--text-dark, #111827);
}

.article-body a {
  color: var(--primary-hover, #d97706);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body a:hover {
  color: var(--dark-bg);
}

.article-body hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 2.5rem 0;
}

.article-body blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background-color: #fffbeb;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  color: #4b5563;
  font-size: 0.9375rem;
}

.article-body blockquote p {
  margin-bottom: 0;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.article-body ul {
  list-style: disc;
}

.article-body ol {
  list-style: decimal;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body ul.checklist {
  list-style: none;
  padding-left: 0;
}

.article-body ul.checklist li {
  position: relative;
  padding-left: 1.75rem;
}

.article-body ul.checklist li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0.2rem;
  color: var(--primary-hover, #d97706);
  font-size: 0.875rem;
}

/* 表格（复用 spec-table，加文章区上下留白） */
.article-body .table-wrap {
  margin: 1.5rem 0 2rem;
}

/* 配图 */
.article-body figure {
  margin: 2rem 0;
}

.article-body figure.article-img img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.article-body figure.article-img-narrow {
  text-align: center;
}

.article-body figure.article-img-narrow img {
  display: inline-block;
  width: auto;
  max-width: min(100%, 520px);
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* 文末转化区 */
.article-cta-box {
  margin-top: 3rem;
  padding: 2rem;
  background-color: var(--gray-bg, #f9fafb);
  border: 1px solid #e5e7eb;
  border-left: 4px solid var(--primary);
  border-radius: var(--border-radius);
}

.article-cta-box h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.article-cta-box p {
  font-size: 0.9375rem;
  color: var(--text-gray, #4b5563);
  margin-bottom: 1.25rem;
}

.article-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* 相关阅读 */
.related-articles {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid #e5e7eb;
}

.related-articles > h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.25rem;
  background-color: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.related-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.related-tag {
  align-self: flex-start;
  background-color: rgba(251, 191, 36, 0.15);
  color: var(--primary-hover, #d97706);
  padding: 0.15rem 0.55rem;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 700;
}

.related-card h3 {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-dark);
  flex: 1;
}

.related-more {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary-hover, #d97706);
}

.related-all {
  margin-top: 1.75rem;
  text-align: center;
}

@media (max-width: 900px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .article-hero h1 {
    font-size: 1.5rem;
  }

  .article-body h2 {
    font-size: 1.25rem;
  }
}

/* 列表页 hero 文字（基底 detail.css 无 page-hero 文字样式） */
.page-hero .hero-content h1 {
  color: var(--text-white, #fff);
  font-size: 3rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.page-hero .hero-content p {
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .page-hero .hero-content h1 {
    font-size: 2rem;
  }

  .page-hero .hero-content p {
    font-size: 1.05rem;
  }
}

/* ==========================================
   Floating Contact Sidebar
   ========================================== */

.floating-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;

    display: flex;
    flex-direction: column;
    gap: 1px;

    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

/* 单个按钮 */
.sidebar-item {
    position: relative;

    width: 50px;
    height: 50px;

    background-color: #111827;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition: all 0.3s ease;
}

/* 链接 */
.sidebar-item a {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;
    text-decoration: none;

    transition: all 0.3s ease;
}

/* 图标 */
.sidebar-item i {
    color: #ffffff;
    font-size: 20px;
}

/* ==========================================
   Hover Colors
   ========================================== */

.sidebar-item.whatsapp:hover {
    background-color: #25D366;
}

.sidebar-item.telegram:hover {
    background-color: #229ED9;
}

.sidebar-item.email:hover {
    background-color: #FBBF24;
}

.sidebar-item.back-to-top:hover {
    background-color: #4b5563;
}

/* ==========================================
   Tooltip
   ========================================== */

.sidebar-tooltip {
    position: absolute;

    right: 60px;
    top: 50%;

    transform: translateY(-50%) translateX(20px);

    opacity: 0;
    visibility: hidden;

    transition:
        all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    pointer-events: none;

    z-index: 10000;
}

/* Hover 显示 Tooltip */
.sidebar-item:hover .sidebar-tooltip {
    opacity: 1;
    visibility: visible;

    transform: translateY(-50%) translateX(0);
}

/* ==========================================
   QR Code Tooltip
   ========================================== */

.qr-tooltip {
    background-color: #ffffff;

    padding: 10px;

    border-radius: 8px;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);

    border: 1px solid #e5e7eb;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 8px;
}

.qr-tooltip img {
    width: 240px;
    height: 240px;
    object-fit: contain;

    max-width: none; /* 防止全局 img { max-width:100% } 导致弹窗塌缩 */
}

.qr-tooltip span {
    font-size: 13px;
    font-weight: 700;

    color: #374151;

    white-space: nowrap; /* 防止微信昵称被竖排 */
}

/* ==========================================
   Email Tooltip
   ========================================== */

.text-tooltip {
    background-color: #FBBF24;

    color: #111827;

    font-weight: 700;

    padding: 12px 16px;

    border-radius: 6px;

    white-space: nowrap;

    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Tooltip 箭头 */
.text-tooltip::after,
.qr-tooltip::after {
    content: "";

    position: absolute;

    top: 50%;
    right: -6px;

    transform: translateY(-50%);

    border-width: 6px 0 6px 6px;
    border-style: solid;
}

.text-tooltip::after {
    border-color:
        transparent
        transparent
        transparent
        #FBBF24;
}

.qr-tooltip::after {
    border-color:
        transparent
        transparent
        transparent
        #ffffff;
}

/* ==========================================
   Mobile
   ========================================== */

@media screen and (max-width: 768px) {

    /* 隐藏 Tooltip */
    .sidebar-tooltip,
    .qr-tooltip,
    .text-tooltip {
        display: none !important;
    }

    /* 底部固定 */
    .floating-sidebar {
        top: auto;
        bottom: 0;

        left: 0;
        right: 0;

        width: 100%;

        transform: none;

        flex-direction: row;

        box-shadow:
            0 -2px 10px rgba(0, 0, 0, 0.1);

        z-index: 99999;
    }

    /* 平均分配 */
    .sidebar-item {
        flex: 1;

        width: auto;
        height: 55px;

        border-right:
            1px solid rgba(255, 255, 255, 0.1);
    }

    .sidebar-item:last-child {
        border-right: none;
    }

    .sidebar-item i {
        font-size: 22px;
    }

    /* 防止遮挡页面内容 */
    body {
        padding-bottom: 60px;
    }
}
/* ==========================================
   移动端优化 方案二：底部横向固定吸底
   ========================================== */
@media screen and (max-width: 768px) {
    /* 1. 彻底隐藏悬浮二维码和文字提示 */
    .sidebar-tooltip,
    .qr-tooltip,
    .text-tooltip {
        display: none !important;
    }

    /* 2. 将竖排改为底部横排，宽度100%吸底 */
    .floating-sidebar {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        transform: none;
        flex-direction: row;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 99999;
    }

    /* 3. 按钮平分底部宽度，增大点击区域 */
    .sidebar-item {
        flex: 1; /* 四个按钮各占 25% 宽度 */
        height: 55px;
        border-right: 1px solid rgba(255,255,255,0.1); /* 按钮之间的暗色分割线 */
    }

    .sidebar-item:last-child {
        border-right: none;
    }

    .sidebar-item i {
        font-size: 22px;
    }

    /* 为防止底部按钮遮挡网页最下方的内容，给手机端 body 增加底部内边距 */
    body {
        padding-bottom: 60px !important;
    }
}
