/* =========================================
  1. 核心设计系统 (保持一致)
  ========================================= */
:root {
  --bg-body: #f8f9fc;

  --bg-gradient: linear-gradient(to bottom, #ffffff 0%, #f8f9fc 100%);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --primary: #0056b3;
  --primary-dark: #003d6b;
  --primary-fade: rgba(0, 86, 179, 0.06);
  --radius: 12px;
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 12px 24px rgba(0, 0, 0, 0.08);

  /* 标签色 */
  --tag-bg: #eef6ff;
  --tag-text: #1d4ed8;
  /* 徽章色 */
  --badge-green-bg: #e6f4ea;
  --badge-green-text: #137333;
}

/* 全局重置的部分保留，避免冲突，只针对新结构生效 */
body {
  background: #f8fafc;
  /* Ensure light gray background */
}

img {
  max-width: 100%;
  display: block;
}

/* 容器修复：确保 padding 不会撑破宽度，margin auto 居中 */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 15px;
}

/* =========================================
2. 面包屑区域
========================================= */
.mini-hero {
  background: #0f172a;
  padding: 40px 0;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}

.breadcrumb {
  color: #94a3b8;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: #94a3b8;
}

.breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

.breadcrumb span {
  color: #fff;
}

/* =========================================
3. 核心布局 Grid
========================================= */
.layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 40px;
  margin: 40px auto 80px;
  align-items: start;
}

/* =========================================
/* 左侧栏样式 (New Case Sidebar) */
.case-sidebar {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.case-search {
  position: relative;
  width: 100%;
}

.case-search input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  outline: none;
  transition: all 0.3s var(--case-ease);
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  font-size: 14px;
}

.case-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-fade);
}

.case-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 14px;
}

.case-side-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.case-side-hd {
  font-size: 13px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 16px 20px 8px;
  background: linear-gradient(to bottom, #fff, #f8fafc);
  margin: 0;
}

.case-side-menu {
  list-style: none;
  padding: 8px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.case-side-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--text-main);
  font-size: 14px;
  transition: all 0.2s var(--case-ease);
  text-decoration: none;
  border-left: 3px solid transparent;
  line-height: normal;
}

.case-side-menu a .icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  transition: color 0.2s;
  flex-shrink: 0;
  font-size: 16px;
}

.case-side-menu a .text {
  flex: 1;
  font-weight: 600;
  color: #334155;
  margin-top: -2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  vertical-align: middle;
}

.case-side-menu a.on,
.case-side-menu a:hover {
  background: #f0f7ff;
  /* Light blue background */
  border-left: 3px solid var(--primary);
  /* Blue vertical line */
  color: var(--primary);
  font-weight: 700;
}

.case-side-menu a.on .icon,
.case-side-menu a.on .text,
.case-side-menu a:hover .icon,
.case-side-menu a:hover .text {
  color: var(--primary);
}

.case-contact-widget {
  padding: 20px;
  text-align: center;
  background: #f0f7ff;
}

.case-contact-widget i {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 10px;
  display: block;
}

.case-contact-widget div {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.case-contact-widget strong {
  font-size: 20px;
  color: #0f172a;
  font-family: monospace;
  display: block;
}

/* =========================================
4. 面包屑区域 (新)
========================================= */
.crumb-bar {
  margin-bottom: 20px;
  display: flex;
  justify-content: flex-end;
  /* 右对齐 */
  font-size: 14px;
  color: #64748b;
}

.crumb-bar a {
  color: #64748b;
  margin: 0 5px;
}

.crumb-bar a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* =========================================
4. 右侧详情页专用样式
========================================= */

/* A. 产品概览卡片 */
.product-hero-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 48px;
  /* Increased padding 1.5x */
  display: grid;
  grid-template-columns: 45% 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.ph-gallery {
  position: relative;
  border-radius: 12px;
  /* 12px Large Radius */
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid #e5e7eb;
  /* Light gray border */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  /* Studio light effect */
  aspect-ratio: 4/3;
}

.ph-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  cursor: pointer;
  filter: brightness(1.02);
  /* Slight brightness lift */
}

.ph-gallery:hover img {
  transform: scale(1.03);
}

.ph-tag-bar {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.ph-info h1 {
  margin: 0 0 16px;
  font-size: 26px;
  /* 24-28px range */
  color: #1f2937;
  /* Dark Rock Gray */
  line-height: 1.3;
  font-weight: 600;
  /* Semibold */
  letter-spacing: -0.02em;
  animation: fadeInUp 0.8s ease-out forwards;
  /* AI Animation */
  opacity: 0;
  /* Start invisible for animation */
}

.ph-badge {
  display: inline-block;
  background: var(--tag-bg);
  color: var(--tag-text);
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 999px;
  /* Capsule */
  font-weight: 600;
  vertical-align: middle;
  margin-bottom: 16px;
}

/* 服务行 */
.ph-service-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px dashed #e2e8f0;
}

.service-text {
  font-size: 15px;
  color: #334155;
}

.service-text strong {
  color: #0f172a;
  font-weight: 600;
}

.service-green-badge {
  background: var(--badge-green-bg);
  color: var(--badge-green-text);
  padding: 4px 12px;
  border-radius: 999px;
  /* Capsule */
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ph-features {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.feature-tag {
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  /* Capsule */
  font-weight: 600;
}

.ph-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
  font-size: 14px;
  color: #64748b;
}

.ph-meta .meta-item {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: 0;
  border-left: 0;
}

.meta-item i {
  color: var(--primary);
  margin-right: 4px;
}

.ph-actions {
  display: flex;
  gap: 16px;
}

.review-anchor-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  color: #b45309;
  background: linear-gradient(135deg, #fef9c3 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.review-anchor-btn:hover {
  background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
  color: #92400e;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
  transform: translateY(-1px);
}
.review-anchor-btn .fa-star { color: #f59e0b; font-size: 13px; }
.review-anchor-btn .fa-bounce-slow { font-size: 11px; animation: bounceDown 2s infinite; }
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  /* Bright to Dark Blue Gradient */
  color: #fff;
  padding: 14px 40px;
  /* Taller */
  border-radius: 8px;
  /* Slightly rounded */
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
  /* Colored shadow */
  text-decoration: none;
  transition: all 0.3s ease;
  animation: shadowPulse 2s infinite;
  /* Breathing animation */
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

/* AI Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shadowPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

/* B. 内容文章区域 */
.content-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 40px;
  margin-bottom: 32px;
}

/* 文章目录 (TOC) */
.article-toc {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 30px;
}
.toc-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}
.toc-title i { color: var(--primary); margin-right: 6px; }
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.toc-list li { margin-bottom: 6px; line-height: 1.6; }
.toc-list li a {
  color: #475569;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
  display: inline-block;
  padding: 2px 0;
}
.toc-list li a:hover { color: var(--primary); }
.toc-list li.toc-h3 { padding-left: 20px; }
.toc-list li.toc-h3 a { font-size: 13px; color: #64748b; }

.article-body h2 {
  font-size: 22px;
  color: #1e293b;
  margin: 40px 0 20px;
  padding-left: 14px;
  border-left: 4px solid var(--primary);
  line-height: 1;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body p {
  margin-bottom: 1.2em;
  color: #475569;
  font-size: 16px;
  text-align: justify;
  line-height: 1.8;
}



.article-body img {
  max-width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  border-radius: 8px;
  margin: 20px auto;
}

/* Enhanced Article Body Styles */
.article-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: #334155;
  margin: 32px 0 16px;
  padding-left: 12px;
  border-left: 4px solid #cbd5e1;
  line-height: 1.4;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
  border: 1px solid #e2e8f0;
}

.article-body table th,
.article-body table td {
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  color: #334155;
}

.article-body table th {
  background-color: #f8fafc;
  font-weight: 600;
  text-align: left;
  color: #1e293b;
}

.article-body table tr:nth-child(even) {
  background-color: #fcfcfc;
}

.article-body table tr:hover {
  background-color: #f1f5f9;
}

.article-body ul {
  list-style: none;
  /* Reset default to use custom */
  padding-left: 0;
}

.article-body ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}

.article-body ul li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  width: 6px;
  height: 6px;
  background-color: var(--primary);
  border-radius: 50%;
}

.article-body ol {
  padding-left: 20px;
  margin-bottom: 24px;
  color: #475569;
}

.article-body blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  background-color: #f8fafc;
  border-left: 4px solid var(--primary);
  border-radius: 0 4px 4px 0;
  color: #475569;
  font-style: italic;
}

/* C. 技术参数表 */
.tech-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  border: 1px solid #e2e8f0;
  font-size: 14px;
}

.tech-table th {
  background: #f8fafc;
  text-align: left;
  padding: 14px 20px;
  color: #334155;
  font-weight: 700;
  border-bottom: 1px solid #e2e8f0;
  width: 30%;
}

.tech-table td {
  padding: 14px 20px;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
}

.tech-table tr:last-child td {
  border-bottom: none;
}

/* D. 相关推荐 */
.related-section {
  margin-top: 60px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title a {
  font-size: 14px;
  color: var(--primary);
  font-weight: normal;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.card-img {
  height: 180px;
  overflow: hidden;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 16px;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.card:hover .card-title {
  color: var(--primary);
}

/* === SEO增强模块样式 === */

.detail-tags-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0;
  padding: 20px 0;
  border-top: 1px dashed #e2e8f0;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 14px;
  color: #64748b
}

.detail-tags-bar>i {
  color: #0056b3;
  font-size: 16px
}

.detail-tags-bar a {
  display: inline-block;
  background: #eef6ff;
  color: #1d4ed8;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all .3s
}

.detail-tags-bar a:hover {
  background: #0056b3;
  color: #fff
}

.detail-copyright {
  margin: 24px 0;
  padding: 16px 20px;
  background: #f8fafc;
  border-left: 4px solid #cbd5e1;
  border-radius: 0 8px 8px 0
}

.detail-copyright p {
  font-size: 13px !important;
  color: #64748b !important;
  line-height: 1.8 !important;
  margin: 0 !important;
  text-align: left !important
}

.detail-copyright a {
  color: #0056b3;
  text-decoration: none
}

.detail-copyright a:hover {
  text-decoration: underline
}

.detail-author-box {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin: 32px 0;
  padding: 28px;
  background: linear-gradient(135deg, #f0f7ff 0%, #f8fafc 100%);
  border-radius: 12px;
  border: 1px solid #e2e8f0
}

.detail-author-avatar {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .3)
}

.detail-author-box img {
  width: 100%;
  height: 100%;
  display: block;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center center;
  transform-origin: center center
}

.detail-author-info h4 {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px
}

.detail-author-info p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.7;
  margin: 0
}

.detail-faq-section {
  margin-top: 40px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
  padding: 32px
}

.detail-faq-section>h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 20px;
  padding: 0;
  border: none
}

.detail-faq-section>h3 i {
  color: #0056b3;
  margin-right: 8px
}

.detail-faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all .3s
}

.detail-faq-item:hover {
  border-color: #bfdbfe
}

.detail-faq-item[open] {
  border-color: #93c5fd;
  box-shadow: 0 4px 12px rgba(59, 130, 246, .1)
}

.detail-faq-item summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  transition: background .2s
}

.detail-faq-item summary:hover {
  background: #f8fafc
}

.detail-faq-item summary::-webkit-details-marker {
  display: none
}

.detail-faq-item summary .faq-q-text {
  flex: 1
}

.detail-faq-item summary .faq-q-text i {
  color: #0056b3;
  margin-right: 10px
}

.detail-faq-item summary .faq-arrow {
  color: #94a3b8;
  transition: transform .3s;
  font-size: 12px;
  flex-shrink: 0;
  margin-left: 12px
}

.detail-faq-item[open] summary .faq-arrow {
  transform: rotate(180deg)
}

.detail-faq-body {
  padding: 0 20px 16px;
  font-size: 14px;
  color: #64748b;
  line-height: 1.8;
  border-top: 1px dashed #e2e8f0;
  padding-top: 16px
}

/* === 客户评价 + 预约通知样式 === */

/* ============ 客户评价模块 ============ */
.review-section { margin-top: 60px; }
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.review-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 24px; transition: all 0.3s; border: 1px solid #f1f5f9; }
.review-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.reviewer-avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 600; color: #fff; flex-shrink: 0; }
.reviewer-info { flex: 1; }
.reviewer-name { font-size: 15px; font-weight: 600; color: var(--text-main); display: flex; align-items: center; gap: 6px; }
.reviewer-company { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.verified-badge { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; background: #dbeafe; color: #1d4ed8; padding: 2px 8px; border-radius: 10px; font-weight: 500; }
.review-stars { color: #f59e0b; font-size: 13px; letter-spacing: 1px; margin-bottom: 10px; }
.review-text { font-size: 14px; color: #475569; line-height: 1.7; }
.review-date { font-size: 12px; color: #94a3b8; margin-top: 12px; }

/* ============ 预约通知侧栏卡片 ============ */
.booking-sidebar { overflow: hidden; }
.booking-sidebar .case-side-hd { display: flex; align-items: center; gap: 6px; }
.booking-sidebar .case-side-hd .dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; animation: blink 1.5s infinite; }
@keyframes blink { 0%,100%{ opacity:1; } 50%{ opacity:0.3; } }
.booking-list { padding: 4px 12px; }
.booking-item { display: none; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed #f1f5f9; }
.booking-item.active { display: flex; }
.booking-item-icon { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #3b82f6, #1d4ed8); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; flex-shrink: 0; }
.booking-item-text { flex: 1; font-size: 12px; color: #475569; line-height: 1.5; }
.booking-item-text strong { color: var(--primary); font-weight: 600; }
.booking-item-time { font-size: 11px; color: #94a3b8; }
