/* ============================================================
   CSS Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; color: #333; background: #f8f8f8; line-height: 1.6; }
a { color: #2c2c2c; text-decoration: none; transition: color .2s; }
a:hover { color: #000; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
input, textarea, select, button { font-family: inherit; font-size: inherit; outline: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.clearfix::after { content: ""; display: table; clear: both; }

/* ============================================================
   Buttons
   ============================================================ */
.btn { display: inline-block; padding: 8px 22px; border-radius: 4px; border: none; cursor: pointer; font-size: 14px; transition: background .2s, color .2s; }
.btn-primary { background: #2c2c2c; color: #fff; }
.btn-primary:hover { background: #000; color: #fff; }
.btn-outline { background: transparent; color: #2c2c2c; border: 1px solid #2c2c2c; }
.btn-outline:hover { background: #2c2c2c; color: #fff; }
.btn-sm { padding: 5px 14px; font-size: 13px; }
.btn-lg { padding: 12px 32px; font-size: 16px; }

/* ============================================================
   Navbar
   ============================================================ */
#navbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); transition: box-shadow .3s; }
#navbar.scrolled { box-shadow: 0 4px 16px rgba(0,0,0,.14); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.navbar-logo { display: flex; align-items: center; height: 100%; overflow: hidden; padding-top: 13px; }
.navbar-logo img { height: 300%; width: auto; padding: 15px 0; }
.navbar-menu { display: flex; align-items: center; gap: 4px; }
.navbar-menu a { padding: 8px 16px; border-radius: 4px; font-size: 15px; color: #333; transition: background .2s, color .2s; }
.navbar-menu a:hover, .navbar-menu a.active { background: #2c2c2c; color: #fff; }
.navbar-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.navbar-toggle span { display: block; width: 24px; height: 2px; background: #333; border-radius: 2px; transition: transform .3s, opacity .3s; }
.navbar-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggle.open span:nth-child(2) { opacity: 0; }
.navbar-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Banner / Slider
   ============================================================ */
.banner-section { margin-top: 64px; position: relative; overflow: hidden; background: #eee; }
.banner-section .swiper-slide img { width: 100%; height: 50vh; object-fit: cover; }
.banner-section .swiper-pagination-bullet-active { background: #2c2c2c; }
.banner-section .swiper-button-next,
.banner-section .swiper-button-prev { color: #fff; }

/* ============================================================
   Section Common
   ============================================================ */
.section { padding: 60px 0; }
.section-gray { background: #f5f5f5; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 28px; font-weight: 700; color: #222; position: relative; display: inline-block; padding-bottom: 12px; }
.section-title h2::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 48px; height: 3px; background: #2c2c2c; border-radius: 2px; }
.section-title p { margin-top: 12px; color: #666; font-size: 15px; }

/* ============================================================
   Product Cards (6-column grid)
   ============================================================ */
.product-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.product-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.06); transition: transform .25s, box-shadow .25s; text-align: center; padding: 24px 16px; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.product-card .card-icon { width: 64px; height: 64px; margin: 0 auto 14px; object-fit: contain; }
.product-card .card-title { font-size: 15px; font-weight: 600; color: #222; margin-bottom: 8px; }
.product-card .card-summary { font-size: 13px; color: #666; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .card-link { display: inline-block; margin-top: 12px; font-size: 13px; color: #2c2c2c; }

/* ============================================================
   Advantage Cards (我们的优势)
   ============================================================ */
.advantage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.advantage-card { background: #fff; border-radius: 12px; padding: 40px 30px; text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,.08); transition: all .3s ease; position: relative; overflow: hidden; }
.advantage-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #2c2c2c, #666); transform: scaleX(0); transition: transform .3s ease; }
.advantage-card:hover { transform: translateY(-8px); box-shadow: 0 12px 40px rgba(0,0,0,.2); }
.advantage-card:hover::before { transform: scaleX(1); }
.advantage-icon { width: 80px; height: 80px; margin: 0 auto 24px; background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all .3s ease; }
.advantage-icon i { font-size: 42px; color: #2c2c2c; }
.advantage-icon img { width: 50px; height: 50px; object-fit: contain; }
.advantage-card:hover .advantage-icon { transform: scale(1.1); background: linear-gradient(135deg, #2c2c2c 0%, #000 100%); }
.advantage-card:hover .advantage-icon i { color: #fff; }
.advantage-title { font-size: 18px; font-weight: 700; color: #222; margin-bottom: 16px; }
.advantage-desc { font-size: 14px; color: #666; line-height: 1.8; }

/* ============================================================
   News List
   ============================================================ */
.news-list { display: flex; flex-direction: column; gap: 20px; }
.news-item { display: flex; gap: 20px; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.05); transition: box-shadow .25s; }
.news-item:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.news-item .news-thumb { flex: 0 0 200px; height: 140px; overflow: hidden; }
.news-item .news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.news-item:hover .news-thumb img { transform: scale(1.05); }
.news-item .news-body { flex: 1; padding: 16px 20px 16px 0; display: flex; flex-direction: column; justify-content: space-between; }
.news-item .news-title { font-size: 16px; font-weight: 600; color: #222; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-item .news-title:hover { color: #2c2c2c; }
.news-item .news-summary { font-size: 14px; color: #666; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-item .news-meta { font-size: 13px; color: #999; margin-top: 10px; }
.news-item .news-meta span { margin-right: 16px; }

/* ============================================================
   Case Grid (3-column) - 旧版本保留
   ============================================================ */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  transition: transform .25s, box-shadow .25s;
  background: #fff;
  position: relative; /* 确保相对定位 */
}
.case-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.case-card .case-thumb { height: 200px; overflow: hidden; }
.case-card .case-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.case-card:hover .case-thumb img { transform: scale(1.06); }
.case-card .case-body { padding: 16px; }
.case-card .case-title { font-size: 15px; font-weight: 600; color: #222; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.case-card .case-summary { font-size: 13px; color: #666; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.case-card .case-meta { font-size: 12px; color: #999; margin-top: 10px; }

/* ============================================================
   XYDEC Case Section (星艺装饰案例展示复刻)
   ============================================================ */
.xydec-case-section {
  padding: 60px 0;
  background: #fff;
}

/* 标题区域 */
.xydec-case-header {
  text-align: center;
  margin-bottom: 40px;
}

.xydec-case-title {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
  line-height: 1.2;
}

.xydec-case-subtitle {
  font-size: 16px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* 分类标签 */
.xydec-case-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.xydec-case-tab {
  padding: 8px 20px;
  background: transparent;
  border: none;
  color: #666;
  font-size: 16px;
  cursor: pointer;
  transition: color 0.3s ease;
  position: relative;
}

.xydec-case-tab:hover,
.xydec-case-tab.active {
  color: #e60012;
}

.xydec-case-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: #e60012;
}

.xydec-case-more-link {
  padding: 8px 20px;
  color: #666;
  font-size: 16px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.xydec-case-more-link:hover {
  color: #e60012;
}

/* 案例内容区域 */
.xydec-case-content {
  position: relative;
  min-height: 500px;
  width: 100%;
  max-width: none;  /* 移除最大宽度限制 */
}

.xydec-case-section .container {
  max-width: 70vw;  /* 设置为视窗宽度的70% */
  margin: 0 auto;
  padding: 0 15px;
}

.xydec-case-grid {
  display: none !important;
  grid-template-columns: repeat(4, 1fr);  /* 从3列改为4列 */
  gap: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.xydec-case-grid.active {
  display: grid !important;
  opacity: 1 !important;
}

.xydec-case-grid.active {
  display: grid !important;
  opacity: 1 !important;
}

/* 案例项目 */
.xydec-case-item {
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.xydec-case-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.xydec-case-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.xydec-case-image {
  position: relative;
  width: 100%;
  height: 380px;  /* 从320px增加到380px */
  overflow: hidden;
  background: #f5f5f5;
}

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

.xydec-case-item:hover .xydec-case-image img {
  transform: scale(1.05);
}

/* 新增覆盖层样式 */
.xydec-case-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
  padding: 25px 20px 20px;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.xydec-case-item:hover .xydec-case-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
}

.xydec-case-info {
  padding: 0;  /* 移除原有的padding */
}

.xydec-case-name {
  font-size: 18px;
  font-weight: 600;
  color: #fff;  /* 改为白色 */
  margin: 0 0 8px 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;  /* 允许显示2行 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);  /* 添加文字阴影 */
}

.xydec-case-meta {
  font-size: 14px;
  color: rgba(255,255,255,0.9);  /* 改为半透明白色 */
  line-height: 1.4;
}

.xydec-case-style {
  color: rgba(255,255,255,0.9);  /* 改为半透明白色 */
}

.xydec-case-separator {
  margin: 0 8px;
  color: rgba(255,255,255,0.6);  /* 改为更淡的白色 */
}

.xydec-case-area,
.xydec-case-type {
  color: rgba(255,255,255,0.9);  /* 改为半透明白色 */
}

/* 底部按钮区域 */
.xydec-case-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
}

.xydec-case-price-btn {
  padding: 12px 30px;
  background: #e60012;
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.xydec-case-price-btn:hover {
  background: #cc0010;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(230, 0, 18, 0.3);
}

.xydec-case-view-more {
  color: #666;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.xydec-case-view-more:hover {
  color: #e60012;
}

/* 超大屏幕优化 */
@media (min-width: 1400px) {
  .xydec-case-section .container {
    max-width: 70vw;  /* 超大屏幕保持70%宽度 */
  }
  
  .xydec-case-image {
    height: 420px;  /* 超大屏幕进一步增加图片高度 */
  }
  
  .xydec-case-grid {
    gap: 25px;  /* 增加间距 */
  }
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .xydec-case-section .container {
    max-width: 80vw;  /* 平板端使用80%宽度 */
  }
  
  .xydec-case-grid {
    grid-template-columns: repeat(3, 1fr);  /* 中等屏幕显示3列 */
    gap: 15px;
  }
  
  .xydec-case-title {
    font-size: 28px;
  }
  
  .xydec-case-image {
    height: 320px;  /* 从280px增加到320px */
  }
}

@media (max-width: 768px) {
  .xydec-case-section .container {
    max-width: 95vw;  /* 手机端使用95%宽度 */
    padding: 0 10px;
  }
  
  .xydec-case-section {
    padding: 40px 0;
  }
  
  .xydec-case-grid {
    grid-template-columns: repeat(2, 1fr);  /* 小屏幕显示2列 */
    gap: 15px;  /* 减少间距以适应更宽的布局 */
  }
  
  .xydec-case-title {
    font-size: 24px;
  }
  
  .xydec-case-subtitle {
    font-size: 14px;
  }
  
  .xydec-case-tabs {
    gap: 5px;
  }
  
  .xydec-case-tab {
    padding: 6px 12px;
    font-size: 14px;
  }
  
  .xydec-case-image {
    height: 280px;  /* 从260px增加到280px */
  }
  
  .xydec-case-footer {
    flex-direction: column;
    gap: 15px;
  }
  
  .xydec-case-price-btn {
    padding: 10px 25px;
    font-size: 14px;
  }
}

/* ============================================================
   Case Detail Page (案例详情页)
   ============================================================ */
.case-detail-section {
  padding: 40px 0 60px;
  background: #fff;
}

.case-detail-header {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 2px solid #f0f0f0;
}

.case-detail-title {
  font-size: 28px;
  font-weight: 700;
  color: #222;
  margin-bottom: 20px;
  line-height: 1.3;
}

.case-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 30px;
  margin-bottom: 20px;
}

.case-meta-item {
  display: flex;
  align-items: center;
}

.meta-label {
  font-size: 14px;
  color: #666;
  font-weight: 500;
  min-width: 80px;
}

.meta-value {
  font-size: 14px;
  color: #333;
  font-weight: 600;
}

.case-detail-summary {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #2c2c2c;
}

.case-detail-summary h3 {
  font-size: 16px;
  color: #333;
  margin-bottom: 10px;
}

.case-detail-summary p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.case-detail-thumb {
  display: flex;
  align-items: flex-start;
}

.case-detail-thumb img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.case-detail-content {
  margin-bottom: 40px;
}

.case-detail-content h3 {
  font-size: 20px;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.case-content-body {
  font-size: 15px;
  line-height: 1.8;
  color: #444;
}

.case-content-body img {
  max-width: 100%;
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.case-content-body p {
  margin-bottom: 16px;
}

.case-content-body h2,
.case-content-body h3,
.case-content-body h4 {
  color: #333;
  margin: 24px 0 12px;
}

.no-content {
  text-align: center;
  padding: 60px 0;
  color: #999;
}

.case-detail-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.case-detail-nav .nav-item {
  display: flex;
}

.case-detail-nav .nav-item:last-child {
  justify-content: flex-end;
}

.case-detail-nav .nav-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #666;
  transition: color 0.3s;
  max-width: 300px;
}

.case-detail-nav .nav-link:hover {
  color: #2c2c2c;
}

.case-detail-nav .nav-link.next {
  text-align: right;
}

.case-detail-nav .nav-direction {
  font-size: 12px;
  color: #999;
  margin-bottom: 4px;
}

.case-detail-nav .nav-title {
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-detail-nav .nav-disabled {
  font-size: 14px;
  color: #ccc;
}

.case-detail-actions {
  text-align: center;
  padding-top: 20px;
}

.case-detail-actions .btn {
  margin: 0 10px;
}
.home-case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.home-case-card { display: block; border-radius: 0; overflow: hidden; position: relative; }
.home-case-thumb { position: relative; height: 400px; overflow: hidden; background: #000; }
.home-case-thumb img { width: 100%; height: 100%; object-fit: cover; transition: all .5s ease; opacity: .9; }
.home-case-card:hover .home-case-thumb img { transform: scale(1.05); opacity: 1; }
.home-case-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,.95) 0%, rgba(0,0,0,.7) 50%, transparent 100%); padding: 40px 30px 30px; opacity: 1; }
.home-case-info h3 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 12px; letter-spacing: .5px; }
.home-case-info p { font-size: 14px; color: rgba(255,255,255,.75); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-case-card:nth-child(1) .home-case-thumb { height: 500px; }
.home-case-card:nth-child(1) { grid-column: 1 / -1; }

/* ============================================================
   Case Swiper (案例轮播) - 保留
   ============================================================ */
.case-swiper-container { position: relative; }
.case-swiper { overflow: hidden; border-radius: 8px; }
.case-swiper .swiper-slide { height: auto; }
.case-swiper .home-case-card { display: block; border-radius: 8px; overflow: hidden; position: relative; height: 100%; }
.case-swiper .home-case-thumb { position: relative; height: 320px; overflow: hidden; background: #000; }
.case-swiper .home-case-thumb img { width: 100%; height: 100%; object-fit: cover; transition: all .5s ease; opacity: .9; }
.case-swiper .home-case-card:hover .home-case-thumb img { transform: scale(1.05); opacity: 1; }
.case-swiper .home-case-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,.95) 0%, rgba(0,0,0,.7) 50%, transparent 100%); padding: 30px 20px 20px; opacity: 1; }
.case-swiper .home-case-info h3 { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 8px; letter-spacing: .5px; }
.case-swiper .home-case-info p { font-size: 13px; color: rgba(255,255,255,.75); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 案例轮播导航按钮 */
.case-prev, .case-next { 
  width: 44px; 
  height: 44px; 
  margin-top: -22px; 
  background: rgba(255,255,255,.9); 
  border-radius: 50%; 
  color: #2c2c2c; 
  font-size: 16px; 
  transition: all .3s ease; 
  box-shadow: 0 2px 12px rgba(0,0,0,.15); 
}
.case-prev:hover, .case-next:hover { 
  background: #fff; 
  color: #000; 
  box-shadow: 0 4px 20px rgba(0,0,0,.25); 
}
.case-prev { left: -22px; }
.case-next { right: -22px; }

/* 案例轮播分页器 */
.case-pagination { 
  position: relative; 
  margin-top: 24px; 
  text-align: center; 
}
.case-pagination .swiper-pagination-bullet { 
  width: 12px; 
  height: 12px; 
  background: #ddd; 
  opacity: 1; 
  margin: 0 6px; 
  transition: all .3s ease; 
}
.case-pagination .swiper-pagination-bullet-active { 
  background: #2c2c2c; 
  transform: scale(1.2); 
}

/* ============================================================
   Home Designer Grid (首页设计师团队)
   ============================================================ */
.home-designer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.home-designer-card { background: #fff; border-radius: 8px; padding: 24px; text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: all .3s; }
.home-designer-card:hover { transform: translateY(-6px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.designer-avatar { width: 100px; height: 100px; margin: 0 auto 16px; border-radius: 50%; overflow: hidden; border: 3px solid #f5f5f5; transition: border-color .3s; }
.home-designer-card:hover .designer-avatar { border-color: #2c2c2c; }
.designer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.designer-name { font-size: 16px; font-weight: 600; color: #222; margin-bottom: 6px; }
.designer-title { font-size: 13px; color: #666; margin-bottom: 4px; }
.designer-exp { font-size: 12px; color: #999; }

/* ============================================================
   Footer
   ============================================================ */
#footer { background: #222; color: #ccc; padding: 40px 0 0; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid #333; }
.footer-brand .site-name { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; line-height: 1.8; }
.footer-col h4 { font-size: 15px; color: #fff; margin-bottom: 14px; font-weight: 600; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 14px; color: #aaa; transition: color .2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-links { padding: 20px 0; border-bottom: 1px solid #333; }
.footer-links h4 { font-size: 14px; color: #aaa; margin-bottom: 10px; }
.footer-links .link-list { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-links .link-list a { font-size: 13px; color: #888; border: 1px solid #444; padding: 3px 10px; border-radius: 3px; transition: color .2s, border-color .2s; }
.footer-links .link-list a:hover { color: #fff; border-color: #666; }
.footer-bottom { padding: 16px 0; text-align: center; font-size: 13px; color: #666; }
.footer-bottom a { color: #888; }
.footer-bottom a:hover { color: #fff; }

/* ============================================================
   Breadcrumb
   ============================================================ */
.breadcrumb { background: #f5f5f5; padding: 12px 0; border-bottom: 1px solid #e8e8e8; }
.breadcrumb-list { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 14px; color: #666; }
.breadcrumb-list a { color: #666; }
.breadcrumb-list a:hover { color: #2c2c2c; }
.breadcrumb-list .sep { color: #bbb; }
.breadcrumb-list .current { color: #333; }

/* ============================================================
   Pagination
   ============================================================ */
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 40px 0; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 4px; border: 1px solid #ddd; font-size: 14px; color: #555; transition: background .2s, color .2s, border-color .2s; }
.pagination a:hover { background: #2c2c2c; color: #fff; border-color: #2c2c2c; }
.pagination .active { background: #2c2c2c; color: #fff; border-color: #2c2c2c; }
.pagination .disabled { color: #ccc; cursor: not-allowed; pointer-events: none; }
.pagination .dots { border: none; cursor: default; }

/* ============================================================
   Contact Form
   ============================================================ */
.contact-section { padding: 60px 0; }
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info h3 { font-size: 22px; font-weight: 700; color: #222; margin-bottom: 20px; }
.contact-info .info-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.contact-info .info-item .icon { width: 40px; height: 40px; background: #2c2c2c; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info .info-item .icon svg { width: 18px; height: 18px; fill: #fff; }
.contact-info .info-item .text { font-size: 14px; color: #555; line-height: 1.7; }
.contact-form h3 { font-size: 22px; font-weight: 700; color: #222; margin-bottom: 20px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; color: #444; margin-bottom: 6px; }
.form-group label .required { color: #e74c3c; margin-left: 2px; }
.form-control { width: 100%; padding: 10px 14px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; color: #333; background: #fff; transition: border-color .2s, box-shadow .2s; }
.form-control:focus { border-color: #2c2c2c; box-shadow: 0 0 0 3px rgba(44,44,44,.12); }
.form-control.error { border-color: #e74c3c; }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-error { font-size: 12px; color: #e74c3c; margin-top: 4px; display: none; }
.form-error.show { display: block; }
.form-submit { margin-top: 8px; }
.form-msg { margin-top: 12px; padding: 10px 14px; border-radius: 4px; font-size: 14px; display: none; }
.form-msg.success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; display: block; }
.form-msg.error { background: #fdecea; color: #c62828; border: 1px solid #ef9a9a; display: block; }

/* ============================================================
   Back to Top
   ============================================================ */
#back-to-top { position: fixed; bottom: 40px; right: 30px; width: 44px; height: 44px; background: #2c2c2c; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s, background .2s; z-index: 999; border: none; }
#back-to-top.show { opacity: 1; visibility: visible; }
#back-to-top:hover { background: #000; }
#back-to-top svg { width: 20px; height: 20px; fill: #fff; }

/* ============================================================
   Page Banner (inner pages)
   ============================================================ */
.page-banner { background: linear-gradient(135deg, #2c2c2c 0%, #000 100%); color: #fff; padding: 50px 0; margin-top: 64px; text-align: center; }
.page-banner h1 { font-size: 32px; font-weight: 700; margin-bottom: 10px; }
.page-banner p { font-size: 16px; opacity: .85; }

/* ============================================================
   Plan Section (装修服务计划书)
   ============================================================ */
.plan-section { padding: 50px 0; background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); }
.plan-card { background: #fff; border-radius: 12px; padding: 40px; box-shadow: 0 4px 20px rgba(0,0,0,.08); max-width: 900px; margin: 0 auto; }
.plan-header { text-align: center; margin-bottom: 32px; }
.plan-header h2 { font-size: 28px; font-weight: 700; color: #222; margin-bottom: 12px; }
.plan-subtitle { font-size: 15px; color: #666; }
.plan-count { color: #2c2c2c; font-weight: 600; font-size: 16px; }
.plan-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.plan-form-item-full { grid-column: 1 / -1; }
.plan-input { width: 100%; padding: 12px 16px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; transition: border-color .2s, box-shadow .2s; }
.plan-input:focus { border-color: #2c2c2c; box-shadow: 0 0 0 3px rgba(44,44,44,.1); }
.plan-submit-btn { width: 100%; padding: 14px; background: #2c2c2c; color: #fff; border: none; border-radius: 6px; font-size: 16px; font-weight: 600; cursor: pointer; transition: background .2s; margin-top: 8px; }
.plan-submit-btn:hover { background: #000; }
.plan-submit-btn:disabled { background: #ccc; cursor: not-allowed; }
.plan-msg { margin-top: 12px; padding: 10px 14px; border-radius: 6px; font-size: 14px; text-align: center; display: none; }
.plan-msg.success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.plan-msg.error { background: #fdecea; color: #c62828; border: 1px solid #ef9a9a; }

/* ============================================================
   Article Detail
   ============================================================ */
.article-detail { padding: 40px 0; }
.article-header { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid #eee; }
.article-header h1 { font-size: 26px; font-weight: 700; color: #222; line-height: 1.4; margin-bottom: 12px; }
.article-meta { font-size: 13px; color: #999; display: flex; flex-wrap: wrap; gap: 16px; }
.article-content { font-size: 15px; line-height: 1.9; color: #444; }
.article-content img { max-width: 100%; border-radius: 4px; margin: 12px 0; }
.article-content p { margin-bottom: 14px; }
.article-content h2, .article-content h3 { color: #222; margin: 20px 0 10px; }
.article-nav { display: flex; justify-content: space-between; margin-top: 32px; padding-top: 20px; border-top: 1px solid #eee; font-size: 14px; }
.article-nav a { color: #555; max-width: 45%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.article-nav a:hover { color: #2c2c2c; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1199px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .advantage-grid { grid-template-columns: repeat(3, 1fr); }
  .home-designer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 991px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .advantage-grid { grid-template-columns: repeat(2, 1fr); }
  .home-case-grid { grid-template-columns: repeat(2, 1fr); }
  .home-designer-grid { grid-template-columns: repeat(2, 1fr); }
  .case-section .case-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .case-image { height: 240px; }
  .contact-wrap { grid-template-columns: 1fr; gap: 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .case-detail-header { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 767px) {
  .navbar-logo img { height: 300%; padding-top: 15px;} /* 移动端也放大logo */
  .navbar-menu { display: none; position: absolute; top: 64px; left: 0; width: 100%; background: #fff; flex-direction: column; padding: 12px 0; box-shadow: 0 4px 12px rgba(0,0,0,.1); gap: 0; }
  .navbar-menu.open { display: flex; }
  .navbar-menu a { padding: 12px 20px; border-radius: 0; width: 100%; }
  .navbar-toggle { display: flex; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .advantage-grid { grid-template-columns: 1fr; gap: 20px; }
  .home-case-grid { grid-template-columns: 1fr; }
  .home-case-card:nth-child(1) { grid-column: 1; }
  .home-case-thumb, .home-case-card:nth-child(1) .home-case-thumb { height: 320px; }
  .case-swiper .home-case-thumb { height: 280px; }
  .case-prev, .case-next { width: 36px; height: 36px; margin-top: -18px; font-size: 14px; }
  .case-prev { left: -18px; }
  .case-next { right: -18px; }
  .case-section { padding: 50px 0; }
  .case-tabs { gap: 6px; margin-bottom: 30px; }
  .case-tab { padding: 8px 16px; font-size: 14px; }
  .case-section .case-grid { grid-template-columns: 1fr; gap: 16px; }
  .case-image { height: 220px; }
  .case-overlay { padding: 16px; }
  .case-title { font-size: 16px; }
  .case-meta { font-size: 13px; }
  .home-designer-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .news-item { flex-direction: column; }
  .news-item .news-thumb { flex: none; height: 180px; }
  .news-item .news-body { padding: 14px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .page-banner h1 { font-size: 24px; }
  .banner-section .swiper-slide img { height: 40vh; }
  .section { padding: 40px 0; }
  .section-title h2 { font-size: 22px; }
  .plan-card { padding: 24px; }
  .plan-header h2 { font-size: 22px; }
  .plan-form-row { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pagination a, .pagination span { width: 30px; height: 30px; font-size: 13px; }
}

/* 案例详情页响应式样式 */
@media (max-width: 768px) {
  .case-detail-header {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .case-detail-title {
    font-size: 22px;
  }
  
  .case-meta-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .case-detail-nav {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .case-detail-nav .nav-item:last-child {
    justify-content: flex-start;
  }
  
  .case-detail-nav .nav-link.next {
    text-align: left;
  }
}
/* ============================================================
   Case Filters (案例筛选)
   ============================================================ */
.case-filters {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.filter-section {
  margin-bottom: 25px;
}

.filter-section:last-child {
  margin-bottom: 0;
}

.filter-section h4 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0f0f0;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  display: inline-block;
  padding: 6px 16px;
  background: #f8f9fa;
  color: #666;
  text-decoration: none;
  border-radius: 20px;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.filter-btn:hover {
  background: #e9ecef;
  color: #333;
}

.filter-btn.active {
  background: #2c2c2c;
  color: #fff;
  border-color: #2c2c2c;
}

.filter-reset-btn {
  background: #e74c3c !important;
  color: #fff !important;
  border-color: #e74c3c !important;
}

.filter-reset-btn:hover {
  background: #c0392b !important;
  border-color: #c0392b !important;
}

.advanced-filter {
  margin-top: 15px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.filter-select,
.filter-input {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background: #fff;
  min-width: 120px;
}

.filter-input {
  min-width: 150px;
}

.filter-submit {
  padding: 8px 20px;
  background: #2c2c2c;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.filter-submit:hover {
  background: #000;
}

.filter-reset {
  padding: 8px 16px;
  background: transparent;
  color: #666;
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.filter-reset:hover {
  background: #f8f9fa;
  color: #333;
}

/* ============================================================
   Case Results (案例结果)
   ============================================================ */
.case-results {
  margin-top: 20px;
}

.results-info {
  margin-bottom: 20px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  color: #666;
}

.results-info strong {
  color: #2c2c2c;
  font-weight: 600;
}

.case-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 30%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none; /* 防止覆盖层拦截点击事件 */
}

.case-card:hover .case-overlay {
  opacity: 1;
}

.case-tags {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 5px;
  pointer-events: auto; /* 恢复标签的点击事件 */
}

.tag {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  color: #fff;
}

.tag-top {
  background: #e74c3c;
}

.tag-recommend {
  background: #f39c12;
}

.case-info {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
}

.case-style,
.case-area,
.case-type {
  padding: 2px 6px;
  background: #f8f9fa;
  border-radius: 3px;
  color: #666;
}

.case-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #999;
  margin-top: 8px;
}

.case-category {
  background: #e9ecef;
  padding: 2px 6px;
  border-radius: 3px;
  color: #666;
}

.pagination-wrapper {
  margin-top: 40px;
  text-align: center;
}

/* ============================================================
   No Results (无结果)
   ============================================================ */
.no-results {
  text-align: center;
  padding: 80px 20px;
  color: #666;
}

.no-results-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.no-results h3 {
  font-size: 20px;
  color: #333;
  margin-bottom: 10px;
}

.no-results p {
  font-size: 14px;
  line-height: 1.6;
}

.no-results a {
  color: #2c2c2c;
  text-decoration: none;
}

.no-results a:hover {
  text-decoration: underline;
}

/* ============================================================
   Responsive (响应式)
   ============================================================ */
@media (max-width: 768px) {
  .case-filters {
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .filter-buttons {
    gap: 6px;
  }
  
  .filter-btn {
    padding: 5px 12px;
    font-size: 13px;
  }
  
  .filter-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  
  .filter-select,
  .filter-input {
    min-width: auto;
    width: 100%;
  }
  
  .case-info {
    flex-wrap: wrap;
    gap: 4px;
  }
  
  .case-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .filter-section h4 {
    font-size: 14px;
  }
  
  .results-info {
    font-size: 13px;
  }
  
  .no-results {
    padding: 60px 15px;
  }
  
  .no-results-icon {
    font-size: 36px;
  }
  
  .no-results h3 {
    font-size: 18px;
  }
}