:root {
  --brand: #9f1d22;
  --brand-dark: #2a1714;
  --gold: #b88a4a;
  --bg: #f7f2eb;
  --bg-alt: #efe5d8;
  --text: #231815;
  --muted: #6a5c55;
  --white: #ffffff;
  --border: rgba(35, 24, 21, 0.08);
  --shadow: 0 12px 30px rgba(35, 24, 21, 0.08);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247, 242, 235, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 24px; }
.logo { font-weight: 700; color: var(--brand); display: flex; align-items: center; gap: 8px; }
.logo-content { display: flex; align-items: center; gap: 12px; }
.logo-icon { width: 50px; height: 50px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.logo-icon img { width: 100%; height: 100%; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; gap: 2px; text-align: center; }
.logo-cn { font-size: 18px; font-weight: 700; color: var(--brand); line-height: 1.2; letter-spacing: 3px; }
.logo-en { font-size: 11px; font-weight: 500; color: var(--gold); letter-spacing: 1px; line-height: 1.2; text-transform: uppercase; }
.nav { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.nav a { 
    color: var(--muted); 
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
  }
  .nav a:hover { 
    color: var(--brand); 
    background: rgba(159, 29, 34, 0.08);
    text-decoration: none;
  }
  .nav a[data-active="true"] {
    color: var(--brand);
    font-weight: 700;
    background: rgba(159, 29, 34, 0.12);
  }
.hero {
  padding: 88px 0 72px;
  background: linear-gradient(135deg, #f7f2eb 0%, #f0dfcf 100%);
}
.hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.eyebrow, .section-tag { color: var(--brand); font-weight: 700; letter-spacing: 1px; margin-bottom: 10px; }
h1, h2, h3, h4 { margin-top: 0; line-height: 1.25; }
h1 { font-size: 28px; margin-bottom: 18px; }
h2 { font-size: 34px; margin-bottom: 18px; }
h3 { font-size: 22px; margin-bottom: 12px; }
.hero-slogan { font-size: 20px; color: var(--brand-dark); font-weight: 600; max-width: 720px; margin-bottom: 32px; }
.hero-intro { color: var(--muted); max-width: 720px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: 999px; font-weight: 700;
  transition: 0.25s ease; border: 1px solid transparent;
}
.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { transform: translateY(-1px); opacity: 0.95; }
.btn-secondary { border-color: var(--brand); color: var(--brand); background: transparent; }
.card {
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(184,138,74,0.18);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.hero-card { 
  min-height: 400px; 
  padding: 0; 
  position: relative; 
  overflow: hidden; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  background: transparent; 
  border: none; 
  box-shadow: none;
  border-radius: 0;
}
.image-carousel { 
  width: 100%; 
  max-width: 800px; 
  height: 400px; 
  position: relative; 
  overflow: visible; 
  border-radius: 0; 
  margin: 0 auto; 
  box-shadow: none;
  border: none; 
}
.carousel-track { 
  display: flex; 
  height: 100%; 
  transition: transform 0.5s ease-in-out; 
}
.carousel-slide { 
  flex: 0 0 100%; 
  position: relative; 
}
.carousel-slide img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  display: block; 
}
.slide-caption { 
  position: absolute; 
  bottom: 20px; 
  left: 20px; 
  right: auto; 
  padding: 0; 
  background: transparent; 
  color: white; 
  text-shadow: none; 
  border-radius: 0; 
  z-index: 5; 
  text-align: left;
  max-width: 80%;
}
.slide-caption h3 { 
  margin: 0 0 8px 0; 
  font-size: 20px; 
  font-weight: bold; 
  color: white; 
  line-height: 1.3;
}
.slide-caption p { 
  margin: 0; 
  font-size: 14px; 
  opacity: 0.95; 
  line-height: 1.4; 
  text-shadow: none;
}
.carousel-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.dot { 
  width: 10px; 
  height: 10px; 
  border-radius: 50%; 
  background: rgba(255,255,255,0.4); 
  cursor: pointer; 
  transition: all 0.3s ease; 
}
.dot:hover { 
  background: rgba(255,255,255,0.7);
}
.dot.active { 
  background: white; 
  transform: scale(1.2);
}
.hero-card::before {
  content: ""; position: absolute; inset: 0;
  background: transparent;
}
.hero-card-content { position: relative; }
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 30px; }

/* CTA部分专用样式 */
.cta-section {
  padding: 40px 0;  /* 减少上下内边距 */
}
.grid-2, .grid-3, .grid-4 { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { padding: 28px; }
.small-card { min-height: 210px; }
.card p, .prose p { color: var(--muted); }
.card h3 { display: flex; align-items: center; gap: 12px; }
.space-icon { width: 50px; height: 50px; object-fit: contain; flex-shrink: 0; }
.card .meta { 
  margin-top: 12px; 
  font-size: 14px; 
  color: var(--gold);
  font-weight: 500;
  border-top: 1px solid rgba(184, 138, 74, 0.2);
  padding-top: 8px;
}

/* 卡片链接样式 */
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.card-link .card {
  transition: all 0.3s ease;
}

.card-link:hover .card {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(35, 24, 21, 0.15);
  border-color: rgba(159, 29, 34, 0.3);
  cursor: pointer;
}

.card-link:hover h3 {
  color: var(--brand);
}

/* 文章卡片样式 */
.article-card {
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(35, 24, 21, 0.12);
}

.article-image {
  width: calc(100% + 56px);
  height: 180px;
  overflow: hidden;
  margin: -28px -28px 20px -28px;
  position: relative;
  background: #f7f2eb; /* 备用背景色 */
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

/* ====== 优势卡片（图文模块）样式 ====== */
.advantage-cards {
  gap: 20px;
}

.advantage-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  min-height: 280px;
}

.advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(35, 24, 21, 0.12);
}

.advantage-image {
  height: 160px;
  overflow: hidden;
  margin: -28px -28px 20px -28px;
  position: relative;
  background: linear-gradient(135deg, #f7f2eb 0%, #f0dfcf 100%);
  border-radius: 16px 16px 0 0;
}

.advantage-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  border-radius: 16px 16px 0 0;
}

.advantage-card:hover .advantage-img {
  transform: scale(1.05);
}

.advantage-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.advantage-content h3 {
  margin: 0;
  font-size: 20px;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 10px;
}

.advantage-content h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--brand);
  border-radius: 50%;
}

.advantage-content p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  flex: 1;
}

.article-card:hover .article-image img {
  transform: scale(1.05);
}

/* 添加图片加载失败时的备用样式 */
.article-image img[alt]:after {
  content: attr(alt);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f7f2eb;
  color: #9f1d22;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.article-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-category {
  font-size: 12px;
  color: var(--brand);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.article-summary {
  margin-bottom: 16px;
  line-height: 1.6;
  flex: 1;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(35, 24, 21, 0.08);
}

.article-meta {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.read-more {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s ease;
}

.read-more:hover {
  color: var(--gold);
  text-decoration: underline;
}

/* 文章详情页样式 */
.article-feature-image {
  width: 100%;
  max-height: 500px;
  min-height: 300px;
  object-fit: contain;
  border-radius: 20px;
  margin-bottom: 32px;
  box-shadow: 0 12px 30px rgba(35, 24, 21, 0.1);
  background-color: #f8f4ee;
}

.article-header {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 15px;
  color: var(--muted);
}

.article-meta p {
  margin: 0;
}

.article-quote {
  border-left: 4px solid var(--gold);
  padding-left: 20px;
  margin: 32px 0;
  font-style: italic;
  color: var(--brand-dark);
  background: rgba(184, 138, 74, 0.04);
  border-radius: 0 8px 8px 0;
}

/* 文章内容样式优化 */
.prose {
  max-width: 840px;
  margin: 0 auto;
  line-height: 1.8;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
  margin: 48px 0 20px 0;
  color: var(--brand-dark);
}

.prose h2 {
  font-size: 28px;
  border-bottom: 2px solid rgba(184, 138, 74, 0.2);
  padding-bottom: 12px;
}

.prose h3 {
  font-size: 22px;
}

.prose p {
  margin: 24px 0;
  font-size: 18px;
  line-height: 1.8;
  color: var(--text);
}

.prose ul, .prose ol {
  margin: 24px 0;
  padding-left: 24px;
}

.prose li {
  margin: 12px 0;
  font-size: 17px;
  line-height: 1.7;
}

.prose img {
  max-width: 100%;
  border-radius: 12px;
  margin: 32px 0;
  box-shadow: 0 8px 24px rgba(35, 24, 21, 0.08);
}

.prose blockquote {
  background: rgba(184, 138, 74, 0.06);
  padding: 24px;
  border-radius: 16px;
  margin: 32px 0;
  border-left: 4px solid var(--gold);
  font-style: italic;
}

.article-actions {
  display: flex;
  gap: 16px;
  margin: 32px 0;
}

.article-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 32px 0;
}

.tag {
  background: rgba(159, 29, 34, 0.1);
  color: var(--brand);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}

/* 文章详情页响应式调整 */
@media (max-width: 768px) {
  .article-image {
    height: 150px;
  }
  
  .article-feature-image {
    max-height: 300px;
    min-height: 200px;
    border-radius: 12px;
  }
  
  .article-header {
    flex-direction: column;
  }
  
  .article-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .article-actions .btn {
    width: 100%;
    text-align: center;
  }
}
.cta-box { 
  padding: 8px;        /* 减少内边距，让图片有更多空间 */
  text-align: center;
  width: 100%;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* 新：CTA图片容器 */
.cta-image-full {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 0; /* 去掉圆角 */
  background: transparent; /* 透明背景 */
}

/* 四大核心服务图片容器 */
.services-image-container {
  width: 100%;
  text-align: center;
  margin: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px;
  margin-top: -30px;
}

/* 四大核心服务图片 - 服务流程八步图 */
.services-image {
  width: auto;           /* 默认 */
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

/* 首页四大核心服务图 */
.core-services-image {
  width: 100%;           
  height: auto;
  max-height: 500px;    
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

/* 服务流程八步图 */
.service-flow-image {
  width: 60%;           /* 缩小到60%宽度 */
  height: auto;
  max-height: 280px;    /* 限制高度 */
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

/* 六大服务卡片网格 */
.services-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);  /* 3列布局 */
  gap: 20px;
  margin: 30px 0;
}

.service-card {
  background: #ffffff;
  border: 1px solid rgba(35, 24, 21, 0.1);
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 8px 24px rgba(35, 24, 21, 0.12);
  transform: translateY(-4px);
}

.service-card h3 {
  margin: 10px 0 15px 0;
  font-size: 18px;
  color: var(--brand, #9f1d22);
  font-weight: 600;
  text-align: left;
}

.service-card-icon {
  width: 60px;
  height: auto;
  display: block;
}

.service-card-content {
  text-align: left;
}

.service-intro {
  font-size: 14px;
  color: var(--text, #231815);
  line-height: 1.8;
  margin: 0 0 15px 0;
}

.service-section {
  margin-bottom: 15px;
}

.service-section h4 {
  font-size: 14px;
  color: var(--brand, #9f1d22);
  margin: 0 0 8px 0;
  font-weight: 600;
}

.service-section ul {
  margin: 0;
  padding-left: 18px;
}

.service-section ul li {
  font-size: 13px;
  color: var(--muted, #6a5c55);
  line-height: 1.6;
  margin-bottom: 4px;
}

/* 服务理念文字区块 */
.service-philosophy {
  text-align: center;
  padding: 0 20px;
  max-width: 800px;
  margin: -50px auto -100px auto;
}

.service-philosophy p {
  font-size: 15px;
  color: var(--text, #231815);
  line-height: 1.4;
  margin: 0 0 0 0;
}

.service-philosophy p:last-child {
  margin-bottom: 0;
}

/* 新：满框图片样式 */
.direction-image-full {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* cover模式填满容器 */
  max-height: 280px;   /* 增加最大高度 */
  min-height: 180px;
  border-radius: 0;    /* 去掉圆角 */
  background: transparent; /* 透明背景 */
  display: block;
  margin: 0 auto; /* 水平居中 */
}

/* 保持原.direction-image样式（可能其他地方使用） */
.direction-image {
  max-width: 150px;  /* 大幅缩小: 280px -> 150px */
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 16px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
/* ====== 右侧悬浮窗样式 (竖向伸缩侧边栏) ====== */
.floating-widget {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1050; /* 提高z-index，但比二维码容器低 */
  font-family: var(--font);
  transition: all 0.3s ease;
  display: flex;
  height: auto;
  max-height: 80vh; /* 增加高度限制，确保内容容器有足够空间 */
  margin: 0;
  padding: 0;
  right: 0 !important; /* 强制紧靠右侧 */
}

/* 默认收起状态 - 长条紧贴右侧 */
.floating-widget.collapsed {
  width: 56px;
  min-height: 220px;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  outline: none !important;
}

/* 展开状态 */
.floating-widget:not(.collapsed) {
  width: 280px;
  max-height: 500px; /* 增加最大高度，确保内容完全显示 */
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
  right: 0 !important;
}

/* 悬浮条容器 */
.floating-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  flex-shrink: 0; /* 防止长条被压缩 */
}

/* 收起状态时隐藏内容 */
.floating-widget.collapsed .floating-content,
.floating-widget.collapsed .floating-header,
.floating-widget.collapsed .floating-notice {
  display: none;
}

/* 展开状态隐藏长条图标 */
.floating-widget:not(.collapsed) .bar-icon {
  display: none;
}

/* 长条悬停区域 */
.floating-bar {
  background: linear-gradient(to right, var(--brand), var(--brand-dark));
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  border-radius: 8px 0 0 8px;
  transition: all 0.3s ease;
  padding: 20px 0;
  width: 56px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-right: none;
  position: relative;
  z-index: 1001; /* 确保长条在最顶层 */
  margin-right: 0;
  right: 0;
  top: 0;
  bottom: 0;
  user-select: none; /* 防止拖拽时选中文本 */
}

/* 拖动状态样式 */
.floating-widget.dragging {
  cursor: grabbing !important;
  transition: none !important; /* 拖动时禁用过渡动画 */
}

.floating-widget.dragging .floating-bar {
  cursor: grabbing !important;
}

.floating-widget.collapsed .floating-bar {
  padding: 20px 0;
}

.floating-bar:hover {
  background: linear-gradient(to right, var(--brand-dark), var(--brand));
  color: white;
}

.floating-widget.collapsed .floating-bar:hover {
  width: 60px;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
}

/* 长条图标 */
.bar-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.bar-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.bar-icon-img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1); /* 图标变白色 */
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.bar-icon:hover .bar-icon-img {
  opacity: 1;
}

.bar-icon-text {
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  height: auto;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.bar-icon:hover .bar-icon-text {
  opacity: 1;
}

/* 悬浮窗内容 */
.floating-content-container {
  background: white;
  border-radius: 8px 0 0 8px;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
  width: 280px;
  max-height: 400px; /* 固定最大高度，确保出现滚动条 */
  height: auto;
  overflow-y: auto; /* 垂直滚动 */
  overflow-x: hidden; /* 隐藏横向滚动 */
  margin-right: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--brand) rgba(0, 0, 0, 0.1);
  position: relative;
  left: -1px; /* 让内容区域向左移动1px，使长条完全贴边 */
}

.floating-content-container::-webkit-scrollbar {
  width: 6px;
}

.floating-content-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
}

.floating-content-container::-webkit-scrollbar-thumb {
  background: var(--brand);
  border-radius: 3px;
}

.floating-header {
  background: var(--brand);
  color: white;
  padding: 16px 20px;
  border-radius: 8px 0 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.floating-title {
  font-weight: 600;
  font-size: 16px;
}

.floating-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-close:hover {
  opacity: 0.8;
}

.floating-content {
  padding: 15px 20px;
}

.floating-logo {
  width: 50px;
  height: 50px;
  margin: 0 auto 12px;
}

.floating-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.floating-info {
  text-align: center;
  margin-bottom: 20px;
}

.floating-brand {
  font-weight: 700;
  font-size: 18px;
  color: var(--brand);
  margin: 0 0 4px 0;
}

.floating-tagline {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.floating-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.floating-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.2s ease;
}

.qq-qr-btn {
  background: var(--brand);
  color: white;
  position: relative;
  cursor: pointer;
}

.wechat-qr-btn {
  background: var(--brand);
  color: white;
  position: relative;
  cursor: pointer;
}

.contact-btn {
  background: var(--brand);
  color: white;
}

/* 确保联系人按钮中的图标也是白色 */
.contact-btn .btn-icon {
  color: white;
}

.floating-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 微信扫码按钮的QR码容器 */
.qr-code-container {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 10px;
  background: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  width: 200px;
  z-index: 1100; /* 增加z-index确保在最上层 */
  text-align: center;
}

.wechat-qr-btn:hover .qr-code-container {
  opacity: 1;
  visibility: visible;
}

.qq-qr-btn:hover .qr-code-container {
  opacity: 1;
  visibility: visible;
}

.qr-code {
  width: 160px;
  height: 160px;
  object-fit: contain;
  margin-bottom: 8px;
}

.qr-tip {
  font-size: 12px;
  color: #666;
  margin: 0;
  font-weight: 500;
}

.btn-icon {
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: white; /* 确保图标颜色为白色 */
}

.btn-icon-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1); /* 图标变白色，适配深色按钮背景 */
  display: block;
}

.toggle-icon-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.btn-text {
  flex: 1;
}

.floating-notice {
  text-align: left;
  padding: 12px;
  background: #f8f5f0;
  border-radius: 8px;
  font-size: 13px;
  color: #555;
  border: 1px solid rgba(159, 29, 34, 0.1);
}

.floating-notice p {
  margin: 0 0 10px 0;
  color: #666;
  text-align: center;
  font-style: italic;
}

/* QQ咨询说明样式 */
.qq-instructions {
  font-size: 12px;
  margin-top: 10px;
  border-top: 1px dashed rgba(0, 0, 0, 0.2);
  padding-top: 8px;
  color: #333;
  line-height: 1.5;
  text-align: left;
}

.qq-instructions strong {
  color: #9f1d22;
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

/* 旧悬浮窗切换按钮已移除，替换为竖向伸缩侧边栏 */

.site-footer { background: #211513; color: #e7d7c2; padding: 34px 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 30px; }
/* 页脚内容样式 */
.footer-content { text-align: center; font-size: 14px; }
.footer-content p { margin: 0; color: #c9b99a; }
.footer-content a { color: #c9b99a; text-decoration: none; transition: color 0.3s; }
.footer-content a:hover { color: #e7d7c2; text-decoration: underline; }
/* 页脚版权信息样式 */
.footer-copyright { margin-top: 20px; padding-top: 20px; border-top: 1px solid #3a3025; text-align: center; font-size: 13px; }
.footer-copyright p { margin: 0; color: #a89878; }
.footer-copyright a { color: #a89878; text-decoration: none; transition: color 0.3s; }
.footer-copyright a:hover { color: #e7d7c2; text-decoration: underline; }
.page-banner { padding: 72px 0 60px; background: linear-gradient(180deg, #f0dfcf 0%, #f7f2eb 100%); }
/* 所有页面banner文字左对齐 */
.page-banner .container { text-align: left !important; }

/* 所有页面banner容器宽度对齐 */
body[data-page="about"] .page-banner .container,
body[data-page="services"] .page-banner .container,
body[data-page="articles"] .page-banner .container,
body[data-page="contact"] .page-banner .container,
body[data-page="article-detail"] .page-banner .container {
  max-width: 840px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.page-banner h1, .page-banner p { 
  display: block; 
  width: 100%; 
  max-width: 800px; 
}

/* 关于天赢页面特殊处理 */
body[data-page="about"] .page-banner h1,
body[data-page="about"] .page-banner p {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.page-main { min-height: calc(100vh - 160px); }
.prose { max-width: 840px; }
.form-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px; align-items: start; }
.form-card label { display: block; margin-bottom: 14px; font-weight: 600; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; margin-top: 8px;
  border: 1px solid rgba(35,24,21,0.15); background: #fff; font: inherit;
}
.form-message { margin-top: 14px; color: var(--brand); font-weight: 700; }
@media (max-width: 980px) {
  .hero-grid, .grid-2, .grid-3, .grid-4, .footer-grid, .form-layout, .cta-box { grid-template-columns: 1fr; display: grid; }
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  .nav { gap: 14px; }
  .direction-image {
    max-width: 120px;  /* 缩小 */
  }
  .direction-image-full {
    max-height: 250px;   /* 增加高度以填满宽度 */
    min-height: 160px;
  }
  .services-image {
    width: 75%;  /* 平板设备上增大 */
  }
  .cta-section {
    padding: 30px 0;  /* 在平板设备上进一步减少内边距 */
  }
}

@media (max-width: 576px) {
  .direction-image {
    max-width: 100px;  /* 进一步缩小 */
  }
  .direction-image-full {
    max-height: 200px;   /* 增加高度以填满宽度 */
    min-height: 140px;
  }
  .services-image {
    width: 85%;  /* 手机设备上增大 */
    border-radius: 12px;
  }
  .cta-section {
    padding: 25px 0;  /* 在手机上进一步减少内边距 */
  }
  
  /* 手机端悬浮窗调整 */
  .floating-widget {
    position: fixed;
    right: 0 !important;
    top: auto;
    bottom: 10px;
    transform: none;
    max-height: 50vh;
  }
  
  .floating-widget:not(.collapsed) {
    width: 240px;
    max-height: 400px;
    right: 0 !important;
  }
  
  .floating-widget.collapsed {
    width: 48px;
    min-height: 150px;
    bottom: 10px;
  }
  
  .floating-bar {
    width: 48px;
    padding: 15px 0;
  }
  
  .floating-widget.collapsed .floating-bar:hover {
    width: 50px;
  }
  
  .bar-icon-img {
    width: 22px;
    height: 22px;
  }
  
  .bar-icon-text {
    font-size: 11px;
  }
  
  .bar-icon {
    gap: 16px;
  }
  
  .floating-content-container {
    width: 240px;
    max-height: 380px;
  }
}

/* 隐私政策和服务条款页面样式 */
body[data-page="privacy"] .page-banner .container,
body[data-page="terms"] .page-banner .container {
  max-width: 840px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: left !important;
}
body[data-page="privacy"] .page-banner h1,
body[data-page="privacy"] .page-banner p,
body[data-page="terms"] .page-banner h1,
body[data-page="terms"] .page-banner p {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 800px;
}
.content-section {
  padding: 60px 0;
}
.content-container {
  max-width: 840px;
  margin: 0 auto;
}
.privacy-content,
.terms-content {
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(35,24,21,0.08);
}
.privacy-content h2,
.terms-content h2 {
  color: #231815;
  font-size: 22px;
  margin: 30px 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0dfcf;
}
.privacy-content h2:first-child,
.terms-content h2:first-child {
  margin-top: 0;
}
.privacy-content p,
.terms-content p {
  color: #4a3f3a;
  line-height: 1.8;
  margin: 12px 0;
}
.privacy-content ul,
.terms-content ul {
  color: #4a3f3a;
  line-height: 1.8;
  margin: 12px 0 20px 0;
  padding-left: 24px;
}
.privacy-content li,
.terms-content li {
  margin: 8px 0;
}
.effective-date {
  margin-top: 40px !important;
  padding-top: 20px;
  border-top: 1px solid #e0d5c5;
  font-style: italic;
  color: #8a7a6a !important;
}
  
  .qr-code-container {
    width: 180px;
  }
  
  .qr-code {
    width: 140px;
    height: 140px;
  }
}
