/* 自定义样式 - 温暖背景色 */

body {
  background-color: #fcfaf7 !important;
}

/* 确保主要内容区域也使用温暖背景 */
.main-content {
  background-color: #fcfaf7 !important;
  padding-top: 30px !important;
}

/* 卡片背景稍微亮一点，形成对比 */
.post,
.widget {
  background-color: #ffffff !important;
}

/* 面包屑导航 */
.breadcrumb-wrapper {
  padding: 15px 0;
  font-size: 14px;
  color: #999;
}

.breadcrumb-label {
  color: #666;
  margin-right: 5px;
}

.breadcrumb-text {
  color: #999;
}

.breadcrumb-text a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-text a:hover {
  color: #ff6b6b;
}

/* 分类筛选样式 */
.category-filter {
  background-color: transparent;
  padding: 0;
  margin-bottom: 30px;
}

.category-filter-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e5e5;
}

.filter-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 15px;
}

.filter-label {
  color: #666;
  font-size: 14px;
  white-space: nowrap;
  padding-top: 6px;
  min-width: 60px;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-tag {
  display: inline-block;
  padding: 5px 16px;
  font-size: 14px;
  color: #666;
  background-color: #f5f5f5;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.filter-tag:hover {
  color: #ff6b6b;
  background-color: #fff5f5;
  border-color: #ff6b6b;
}

.filter-tag.active {
  color: #fff;
  background-color: #ff6b6b;
  border-color: #ff6b6b;
}

/* 点评页面样式 */
.review-filter {
  background-color: transparent;
  padding: 0;
  margin-bottom: 30px;
}

.review-filter .filter-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e5e5;
}

/* 排序栏 */
.sort-bar {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.sort-label {
  color: #666;
  font-size: 14px;
  margin-right: 15px;
}

.sort-item {
  padding: 5px 15px;
  margin-right: 10px;
  font-size: 14px;
  color: #666;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.sort-item:hover {
  color: #ff6b6b;
  background-color: #fff5f5;
}

.sort-item.active {
  color: #ff6b6b;
  font-weight: 600;
}

/* 点评卡片 */
.review-card {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.review-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.review-image {
  overflow: hidden;
  border-radius: 8px;
  height: 200px;
}

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

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

.review-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.review-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.review-title a:hover {
  color: #ff6b6b;
}

.review-category {
  background-color: #ff6b6b;
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
}

/* 评分星级 */
.review-rating {
  display: flex;
  align-items: center;
}

.star-score {
  font-size: 18px;
  font-weight: 700;
  color: #ff6b6b;
  margin-right: 8px;
}

.stars-display {
  color: #ff6b6b;
  font-size: 14px;
}

.stars-display i {
  margin-right: 2px;
}

.review-count {
  font-size: 13px;
}

/* 商家信息 */
.review-info {
  font-size: 14px;
  color: #666;
}

.info-item {
  display: inline-flex;
  align-items: center;
}

.info-item i {
  margin-right: 5px;
  color: #999;
}

.review-desc {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* 标签 */
.review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.tag-item {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  color: #ff6b6b;
  background-color: #fff5f5;
  border: 1px solid #ffe0e0;
  border-radius: 3px;
}

.review-meta {
  font-size: 13px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}

/* 响应式 */
@media (max-width: 768px) {
  .review-image {
    height: 150px;
    margin-bottom: 15px;
  }
  
  .sort-bar {
    flex-wrap: wrap;
  }
  
  .sort-item {
    margin-bottom: 5px;
  }
}

/* 点评详情页面样式 */
.review-detail-header {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.shop-name {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
}

.shop-rating {
  display: flex;
  align-items: center;
}

.rating-score {
  font-size: 32px;
  font-weight: 700;
  color: #ff6b6b;
}

.shop-info .info-row {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #666;
}

.shop-info .info-row i {
  margin-right: 8px;
  font-size: 16px;
}

.shop-actions .btn {
  border-radius: 6px;
  font-weight: 600;
}

/* 图片画廊 */
.shop-gallery {
  background-color: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ff6b6b;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  height: 150px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* 内容盒子 */
.content-box {
  background-color: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.shop-description {
  background-color: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.shop-services {
  background-color: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.services-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-tag {
  display: inline-block;
  padding: 8px 16px;
  font-size: 14px;
  color: #666;
  background-color: #f8f8f8;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
}

/* 用户点评 */
.user-reviews {
  background-color: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.review-stats {
  padding: 20px;
  background-color: #f8f8f8;
  border-radius: 8px;
}

.stat-item {
  padding: 15px;
}

.stat-score {
  font-size: 32px;
  font-weight: 700;
  color: #ff6b6b;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 14px;
  color: #666;
}

/* 点评条目 */
.review-item {
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
}

.review-item:last-child {
  border-bottom: none;
}

.reviewer-avatar img {
  width: 50px;
  height: 50px;
  object-fit: cover;
}

.reviewer-name {
  font-weight: 600;
  color: #333;
}

.review-stars {
  color: #ff6b6b;
  font-size: 12px;
}

.review-date {
  font-size: 13px;
}

.review-content {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
}

.review-images {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.review-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  cursor: pointer;
}

.review-actions {
  font-size: 13px;
}

.btn-action {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 0;
  transition: color 0.3s ease;
}

.btn-action:hover {
  color: #ff6b6b;
}

.btn-action i {
  margin-right: 3px;
}

/* 侧边栏小部件 */
.widget {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.widget-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.map-container img {
  width: 100%;
  height: auto;
}

.business-hours {
  font-size: 14px;
  color: #666;
}

.nearby-shop {
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.nearby-shop:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.nearby-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
}

.nearby-name {
  font-size: 14px;
  color: #333;
  margin-bottom: 5px;
}

.nearby-rating {
  font-size: 13px;
}

/* 响应式 - 详情页 */
@media (max-width: 768px) {
  .shop-name {
    font-size: 22px;
  }
  
  .rating-score {
    font-size: 24px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .shop-actions {
    margin-top: 20px;
  }
}

/* 文章详情页内容左侧边距 */
.post-single {
  padding-left: 20px !important;
  padding-right: 20px !important;
}

.post-single .post-header {
  margin-bottom: 20px;
}

.post-single #maximg {
  line-height: 1.8;
}

/* 移动端调整 */
@media (max-width: 768px) {
  .post-single {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* 隐藏导航栏的所有下拉子菜单 */
.navbar-nav .dropdown-menu {
  display: none !important;
}

/* 移除一级菜单的下拉箭头 */
.navbar-nav .dropdown-toggle::after {
  display: none !important;
}

/* 移除鼠标悬停时的下拉效果 */
.navbar-nav .dropdown:hover .dropdown-menu {
  display: none !important;
}

/* 移动端导航也隐藏子菜单 */
.canvas-menu .submenu {
  display: none !important;
}

.post-navigation {
  padding-top: 15px;
  margin-top: 30px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.post-navigation .prev-post,
.post-navigation .next-post {
  max-width: 48%;
}

.post-navigation a {
  color: #333;
  text-decoration: none;
}

.post-navigation a:hover {
  color: #ff6b6b;
}

/* 文章卡片图片统一高度 - 修复图片尺寸不一致问题 */
.post.post-grid .thumb {
  overflow: hidden;
}

.post.post-grid .thumb .inner {
  height: 180px;
  overflow: hidden;
}

.post.post-grid .thumb .inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 首页轮播图统一高度 */
.post.featured-post-md .thumb .inner {
  height: 280px;
}

.post.featured-post-md .thumb .inner.data-bg-image {
  background-size: cover;
  background-position: center;
}

/* 侧边栏小图统一高度 */
.post.post-list-sm .thumb .inner {
  width: 60px;
  height: 60px;
  overflow: hidden;
}

.post.post-list-sm .thumb .inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 文章描述固定两行 - 修复描述长度不一致问题 */
.post.post-grid .excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
  height: 3em; /* 2行 × 1.5行高 = 3em */
  min-height: 3em;
}

/* 文章标题固定高度（可选，保持标题也整齐） */
.post.post-grid .post-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  min-height: 2.8em; /* 预留2行标题空间 */
}

/* 响应式调整 */
@media (max-width: 768px) {
  .post.post-grid .thumb .inner {
    height: 150px;
  }
  
  .post.featured-post-md .thumb .inner {
    height: 200px;
  }
}

/* ========== 分享功能样式 ========== */

/* 分享容器 */
.share-wrapper {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-top: 30px;
}

.share-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.share-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-title i {
  color: #ff6b6b;
}

.share-stats {
  font-size: 14px;
  color: #999;
}

.share-count {
  color: #ff6b6b;
  font-weight: 600;
  margin: 0 3px;
}

/* 分享按钮组 */
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #e5e5e5;
  background-color: #fff;
  color: #666;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

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

/* 微信分享 */
.share-btn.wechat {
  border-color: #07c160;
  color: #07c160;
}

.share-btn.wechat:hover {
  background-color: #07c160;
  color: #fff;
}

/* 微博分享 */
.share-btn.weibo {
  border-color: #e6162d;
  color: #e6162d;
}

.share-btn.weibo:hover {
  background-color: #e6162d;
  color: #fff;
}

/* QQ分享 */
.share-btn.qq {
  border-color: #12b7f5;
  color: #12b7f5;
}

.share-btn.qq:hover {
  background-color: #12b7f5;
  color: #fff;
}

/* QQ空间分享 */
.share-btn.qzone {
  border-color: #fdbe3d;
  color: #fdbe3d;
}

.share-btn.qzone:hover {
  background-color: #fdbe3d;
  color: #fff;
}

/* 复制链接 */
.share-btn.copy {
  border-color: #999;
  color: #666;
}

.share-btn.copy:hover {
  background-color: #666;
  color: #fff;
  border-color: #666;
}

.share-btn.copy.copied {
  background-color: #52c41a;
  color: #fff;
  border-color: #52c41a;
}

/* 微信二维码弹窗 */
.wechat-qrcode-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.wechat-qrcode-modal.active {
  display: flex;
}

.qrcode-content {
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  max-width: 350px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  animation: slideUp 0.3s ease;
}

.qrcode-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
}

.qrcode-image {
  margin: 20px auto;
  padding: 10px;
  background-color: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
}

.qrcode-image canvas {
  display: block;
}

.qrcode-tip {
  font-size: 14px;
  color: #999;
  margin-top: 15px;
}

.qrcode-close {
  margin-top: 20px;
  padding: 10px 30px;
  background-color: #f5f5f5;
  border: none;
  border-radius: 6px;
  color: #666;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.qrcode-close:hover {
  background-color: #e5e5e5;
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 响应式 - 分享按钮 */
@media (max-width: 768px) {
  .share-wrapper {
    padding: 15px;
  }
  
  .share-buttons {
    gap: 10px;
  }
  
  .share-btn {
    flex: 1;
    min-width: calc(50% - 5px);
    padding: 10px 15px;
    font-size: 13px;
  }
  
  .share-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .qrcode-content {
    margin: 0 20px;
    max-width: 90%;
  }
}

/* 相关内容推荐样式优化 - 字体缩小、单行显示、超出省略 */
#related-content-list .list li {
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 8px;
}

#related-content-list .list li a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
