/*
Theme Name: 半熟火腿的A类主题
Description: 简约图片为主
Version: 1.0.1
Author: BI8EFI
*/

/* 全局CSS变量定义 */
:root {
  --primary-color: #0066cc;
  --primary-hover: #0052a3;
  --primary-dark: #004080;
  --success-color: #28a745;
  --success-hover: #1e7e34;
  --dark-bg: #343a40;
  --text-white: #ffffff;
  --text-dark: #1a1a1a;
  --text-gray: #6c757d;
  --text-light-gray: #adb5bd;
  --border-radius: 0.75rem;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --box-shadow-hover: 0 12px 20px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s ease;
  --container-max-width: 1200px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;
}

/* 基础重置和全局样式 */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  height: 100%;
}

body {
  font-family: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  padding-top: 70px;
  overflow-x: hidden;
  margin: 0;
  min-height: 100vh;
}

/* 首页特定样式 */
body.home {
  padding-top: 0;
}

.home .navbar {
  position: absolute;
  width: 100%;
  z-index: 1000;
}

.home .jumbotron {
  margin-top: 0;
}

/* 排版优化 */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
  color: var(--text-dark);
  line-height: 1.2;
}

p {
  margin-bottom: var(--spacing-sm);
}

/* 链接样式 */
a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
  text-decoration: none;
}

a:focus {
  outline: none;
}

/* 焦点样式 */
button:focus {
  outline: 2px dashed var(--primary-color);
  outline-offset: 2px;
}

/* 返回顶部按钮样式 */
#backToTop {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  border: none;
  outline: none;
  background-color: var(--primary-color);
  color: var(--text-white);
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

#backToTop:hover {
  background-color: var(--primary-hover);
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

#backToTop i {
  font-size: 20px;
  line-height: 1;
}

/* 首页幻灯片样式 */
.carousel-item {
  height: 400px;
}

.carousel-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

/* 从index.php提取的样式 */
.bg-image-container {
  background-size: cover;
  background-position: center;
}

/* 视频相关样式 */
#video-container {
  overflow: hidden;
}

#header-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 从page-fullscreen-video.php提取的样式 */
#fullscreen-video-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: -1;
}

/* 分享按钮加载状态样式 */
.share-button-loading {
    opacity: 0.8 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease;
}

/* 分享按钮容器样式 */
.share-button-container {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
}

/* 分享按钮组样式 */
.share-button-container .d-inline-flex {
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 悬停时的按钮组效果 */
.share-button-container .d-inline-flex:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* 单个分享按钮样式 */
.share-button-container button {
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 按钮内部元素样式 */
.share-button-container button i {
    font-size: 1.2rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 按钮悬停时图标缩放效果 */
.share-button-container button:hover i {
    transform: scale(1.2);
}

/* 按钮悬停时增强效果 */
.share-button-container button:hover {
    background-position: right center;
}

/* 渐变背景效果 */
.share-button-container button {
    background-size: 200% auto;
    background-image: linear-gradient(to right, #ffffff 50%, #f8f9fa 50%);
    transition: background-position 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 悬停时渐变效果 */
.share-button-container button:hover {
    background-position: right center;
}

/* 主色调按钮悬停增强 */
.share-button-container button.hover-primary:hover {
    background-image: linear-gradient(to right, #ffffff 50%, rgba(0, 123, 255, 0.08) 50%);
}

/* 分割线样式 */
.share-button-container .w-px {
    background: linear-gradient(to bottom, transparent, #e5e7eb, transparent);
    width: 1px;
    height: 40px;
    margin: auto 0;
}

/* 响应式设计 - 平板设备 */
@media (max-width: 768px) {
    .share-button-container {
        margin: 1.5rem 0;
    }
    
    .share-button-container .d-inline-flex {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .share-button-container button {
        width: 100%;
        border-radius: 0;
        padding: 0.8rem 1rem !important;
        justify-content: center;
    }
    
    .share-button-container .w-px {
        width: 100%;
        height: 1px;
        margin: 0;
    }
}

/* 设备响应式优化 */
input:focus,
textarea:focus {
  outline: 2px dashed var(--primary-color);
  outline-offset: 2px;
}

/* 布局组件 */
main {
  flex: 1 0 auto;
}

/* 容器样式 */
.container {
  max-width: var(--container-max-width);
  padding-left: var(--spacing-sm);
  padding-right: var(--spacing-sm);
  margin-left: auto;
  margin-right: auto;
}

/* 定位相关样式 */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

/* 视频背景样式 */
.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.video-background video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 向下滚动动画样式 */
.scroll-down-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.scroll-down-link {
  display: block;
  width: 48px;
  height: 48px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.scroll-down-link:hover {
  opacity: 1;
}

.scroll-down-icon {
  width: 48px;
  height: 48px;
}

/* 动画定义 */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.animate-bounce {
  animation: bounce 2s infinite;
}

/* 背景图片相关样式 */
.bg-image {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bg-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.bg-image .container {
  position: relative;
  z-index: 2;
}

/* 文章标题链接悬停效果 */
.post-title a:hover {
  color: #ffdf00 !important;
  transform: scale(1.05);
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

/* 首页文章列表样式 */
.post-item {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transition: all 0.4s ease;
  height: 400px; /* 固定高度 */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.post-item:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* 在文章项目上添加一个半透明的黑色遮罩并添加轻微模糊效果 */
.post-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.25); /* 半透明黑色 */
  backdrop-filter: blur(3px); /* 轻微模糊效果 */
  -webkit-backdrop-filter: blur(3px); /* Safari兼容 */
  z-index: 1;
}

.post-item .container-fluid {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}

/* 修复链接可点击性和卡片效果 */
.post-item a.post-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.post-title {
  z-index: 2;
  font-size: 1.75rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  text-align: center;
  color: #fff;
  font-weight: 800;
  padding: 0 1.2rem;
  position: relative;
  z-index: 4;
}

.post-title a {
  transition: all 0.4s ease;
  display: block;
  color: inherit;
  text-decoration: none;
  position: relative;
  z-index: 2;
}

/* 卡片样式 */
.card {
  border: none;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--box-shadow-hover);
}

.card.bg-image {
  transition: transform 0.3s ease;
}

.card.bg-image:hover {
  transform: scale(1.02);
}

/* 巨幕样式 */
.jumbotron.bg-image {
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
  padding: var(--spacing-xxl) var(--spacing-sm);
  min-height: 450px;
  margin-top: 0;
  margin-bottom: var(--spacing-lg);
}

.jumbotron.bg-image h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: var(--spacing-md);
}

.jumbotron.bg-image p {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 850px;
  margin: 0 auto var(--spacing-lg);
}

/* 按钮样式 */
.btn {
  font-weight: 600;
  padding: 0.7rem 1.6rem;
  border-radius: 0.5rem;
  transition: var(--transition);
  border: none;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  cursor: pointer;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.btn:hover::before {
  transform: translateX(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover), var(--primary-dark));
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
}

.btn-success {
  background: linear-gradient(135deg, var(--success-color), var(--success-hover));
}

.btn-success:hover {
  background: linear-gradient(135deg, var(--success-hover), #155724);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
}

/* 导航栏样式 */
.navbar {
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.navbar-brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-white);
  transition: var(--transition);
}

.navbar-brand:hover {
  color: var(--text-white);
  transform: scale(1.05);
}

.navbar-nav .nav-link {
  color: var(--text-white);
  font-weight: 500;
  padding: 0.75rem 1rem;
  transition: var(--transition);
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: var(--text-light-gray);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.navbar-nav .nav-link:hover::after {
  width: 80%;
}

.navbar-nav .nav-link.active {
  color: var(--primary-color);
}

.navbar-nav .nav-link.active::after {
  width: 80%;
  background-color: var(--primary-color);
}

/* 页脚样式 */
footer {
  background-color: var(--dark-bg);
  color: var(--text-white);
}

footer a {
  color: var(--text-white);
  transition: var(--transition);
}

footer a:hover {
  color: var(--text-light-gray);
  text-decoration: none;
}



/* 评论点赞样式 */
.like-button {
  background: none;
  border: none;
  color: var(--text-gray);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
  padding: 0.5rem;
  border-radius: 0.25rem;
  gap: 0.3rem;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.like-button:hover {
  background-color: rgba(0, 102, 204, 0.05);
  color: #ff6b6b;
  transform: scale(1.05);
}

.like-button.liked {
  color: #ff6b6b;
}

.like-button.liked i {
  animation: heartBeat 0.3s ease;
}

@keyframes heartBeat {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.like-button .like-count {
  margin-left: 0.5rem;
  font-weight: 500;
}

/* 媒体查询优化 */
@media (max-width: 1200px) {
  :root {
    --container-max-width: 1140px;
  }
}

@media (max-width: 992px) {
  :root {
    --container-max-width: 960px;
  }
  
  .jumbotron.bg-image h1 {
    font-size: 2.5rem;
  }
  
  .jumbotron.bg-image p {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  :root {
    --container-max-width: 720px;
  }
  
  body {
    padding-top: 60px;
  }
  
  .jumbotron {
    min-height: 250px;
    padding: var(--spacing-lg) var(--spacing-sm);
  }
  
  .jumbotron.bg-image h1 {
    font-size: 2rem;
  }
  
  .jumbotron.bg-image p {
    font-size: 1rem;
  }
  
  .navbar-collapse {
    background-color: rgba(0, 0, 0, 0.95);
    padding: var(--spacing-sm);
    border-radius: var(--border-radius);
    margin-top: var(--spacing-sm);
  }
}

@media (max-width: 576px) {
  :root {
    --container-max-width: 540px;
  }
  
  .jumbotron.bg-image h1 {
    font-size: 1.8rem;
  }
  
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  #backToTop {
    width: 40px;
    height: 40px;
    bottom: 15px;
    right: 15px;
  }
}

/* 打印样式 */
@media print {
  body {
    color: black;
    background: white;
  }
  
  .navbar,
  .footer,
  #backToTop {
    display: none;
  }
  
  a {
    color: black;
    text-decoration: underline;
  }
}

/* 评论模块样式 */
.comments-area {
  margin-top: 2.5rem;
  padding: 2rem;
  background-color: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.comments-title {
  margin-bottom: 1.2rem;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid #e9ecef;
  font-size: 1.7rem;
  font-weight: 800;
  color: #1a1a1a;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment-list ol {
  list-style: none;
}

.comment-list li {
  margin-bottom: 1.8rem;
  padding: 1.2rem;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid #e9ecef;
}

.comment-list li:last-child {
  border-bottom: none;
}

.comment-list li:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  background-color: #f9f9f9;
}

.comment-author {
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
}

.comment-meta {
  margin-left: 1rem;
  flex: 1;
}

.comment-author-name {
  margin: 0 0 0.3rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
}

.comment-author-label {
  font-size: 0.85rem;
  color: #666;
  font-weight: normal;
  margin-right: 0.5rem;
  background-color: #f0f0f0;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
}

.comment-time {
  display: inline-block;
}

.comment-time a {
  font-size: 0.85rem;
  color: #999;
  text-decoration: none;
  transition: color 0.3s ease;
}

.comment-time a:hover {
  color: #0066cc;
}

.comment-content {
  padding-left: 60px;
  line-height: 1.7;
  color: #444;
  font-size: 0.95rem;
  margin-top: 0.7rem;
}

.comment-content p {
  margin-bottom: 0.7rem;
}

.comment-content p:last-child {
  margin-bottom: 0;
}

.comment-content a {
  color: #0066cc;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.comment-content a:hover {
  color: #0052a3;
  border-bottom: 1px solid #0066cc;
}

.comment-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 2px solid #e9ecef;
}

.comment-navigation .nav-previous a,
.comment-navigation .nav-next a {
  color: #5b4f4e;
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  border: none;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  background-color: #f1f3f5;
}

.comment-navigation .nav-previous a:hover,
.comment-navigation .nav-next a:hover {
  background-color: #e9ecef;
  color: #5b4f4e;
  border-bottom: 1px solid #5b4f4e;
}

.comment-navigation .nav-previous a:active,
.comment-navigation .nav-next a:active {
  transform: translateY(1px);
}

.comment-form {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.06);
}

.comment-form .form-group {
  margin-bottom: 1.2rem;
}

.comment-form .form-control {
  border-radius: 0.5rem;
  border: 1px solid #ced4da;
  padding: 0.7rem 1rem;
  font-size: 1.05rem;
  line-height: 1.5;
  transition: all 0.2s ease;
}

.comment-form .form-control:focus {
  border-color: #0066cc;
  box-shadow: 0 0 0 0.25rem rgba(0,102,204,0.2);
  outline: none;
}

.comment-form .form-control::-webkit-input-placeholder {
  color: #6c757d;
  font-style: normal;
}

.comment-form .form-control::-moz-placeholder {
  color: #6c757d;
  font-style: normal;
}

.comment-form .form-control:-ms-input-placeholder {
  color: #6c757d;
  font-style: normal;
}

.comment-form .form-control::-ms-input-placeholder {
  color: #6c757d;
  font-style: normal;
}

.comment-form .form-control::placeholder {
  color: #6c757d;
  font-style: normal;
}

.comment-form .btn {
  background-color: #0066cc;
  border-color: #0066cc;
  border-radius: 0.5rem;
  padding: 0.7rem 1.7rem;
  font-size: 1.05rem;
  font-weight: 600;
  transition: all 0.3s ease;
  color: #fff;
  box-shadow: 0 3px 6px rgba(0,0,0,0.12);
  position: relative;
  overflow: hidden;
}

.comment-form .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.comment-form .btn:hover::before {
  transform: translateX(0);
}

.comment-form .btn:hover {
  background-color: #0052a3;
  border-color: #0052a3;
  box-shadow: 0 6px 12px rgba(0,0,0,0.18);
  transform: translateY(-3px);
}

.comment-form .btn:focus {
  box-shadow: 0 0 0 0.25rem rgba(0,102,204,0.2);
  outline: none;
}

/* 评论随机图标样式 */
.comment-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: bold;
  color: white;
  font-size: 1.5rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.comment-avatar:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.comment-avatar-letter {
  display: inline-block;
}

/* 随机颜色样式 */
.comment-avatar-blue {
  background: linear-gradient(135deg, #1e88e5, #2196f3);
}

.comment-avatar-green {
  background: linear-gradient(135deg, #43a047, #4caf50);
}

.comment-avatar-red {
  background: linear-gradient(135deg, #e53935, #f44336);
}

.comment-avatar-purple {
  background: linear-gradient(135deg, #8e24aa, #9c27b0);
}

.comment-avatar-orange {
  background: linear-gradient(135deg, #fb8c00, #ff9800);
}

.comment-avatar-teal {
  background: linear-gradient(135deg, #00897b, #009688);
}

/* 评论操作区域样式 */
.comment-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-left: 60px;
  margin-top: 1rem;
  gap: 1rem;
}



/* 评论回复按钮样式 */
.reply {
  margin: 0;
}

.reply a {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
  color: #0066cc;
  background-color: #f0f7ff;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.reply a:hover {
  background-color: #0066cc;
  color: white;
  transform: translateX(3px);
}

.comment-awaiting-moderation {
  display: block;
  padding: 0.8rem;
  margin: 1rem 0;
  background-color: #fff8e1;
  color: #ff9800;
  border-radius: 4px;
  font-size: 0.95rem;
}

/* 表单行样式 */
.comment-form .form-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.5rem;
}

.comment-form .form-row .form-group {
  padding: 0 0.5rem;
  margin-bottom: 1rem;
}

.comment-form .col-md-4 {
  flex: 0 0 33.333%;
  max-width: 33.333%;
}

.comment-form .col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

/* 响应式评论样式 */
@media (max-width: 768px) {
  /* 评论列表和项样式优化 */
  .comment-list li {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  }
  
  /* 评论作者区域布局优化 */
  .comment-author {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-bottom: 0.8rem;
  }
  
  /* 评论头像尺寸调整 */
  .comment-avatar {
    width: 48px !important;
    height: 48px !important;
    font-size: 1.3rem;
    flex-shrink: 0;
  }
  
  /* 评论元数据区域优化 */
  .comment-meta {
    margin-left: 0.8rem;
    flex: 1;
  }
  
  /* 评论者名称样式优化 */
  .comment-author-name {
    font-size: 0.95rem;
  }
  
  .comment-author-label {
    font-size: 0.8rem;
    padding: 0.15rem 0.5rem;
  }
  
  /* 评论时间样式优化 */
  .comment-time a {
    font-size: 0.8rem;
  }
  
  /* 评论内容区域优化 */
  .comment-content {
    padding-left: 56px;
    font-size: 0.9rem;
    line-height: 1.6;
  }
  
  /* 评论操作区域响应式优化 */
  .comment-actions {
    padding-left: 56px;
  }
  
  .like-button {
    font-size: 0.8rem;
  }
  
  .reply {
    padding-left: 0;
  }
  
  /* 回复按钮样式优化 */
  .reply a {
    font-size: 0.85rem;
    padding: 0.35rem 0.7rem;
  }
  
  /* 评论表单响应式优化 */
  .comment-form {
    padding: 1.2rem;
  }
  
  .comment-form input,
  .comment-form textarea {
    padding: 0.6rem;
    font-size: 0.95rem;
  }
  
  .comment-form .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* 小屏幕设备优化 (576px以下) */
@media (max-width: 576px) {
  /* 进一步优化间距 */
  .comment-list li {
    margin-bottom: 1.2rem;
    padding: 0.8rem;
  }
  
  /* 评论头像尺寸调整 */
  .comment-avatar {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.2rem;
  }
  
  /* 评论元数据区域优化 */
  .comment-meta {
    margin-left: 0.6rem;
  }
  
  /* 评论者名称样式优化 */
  .comment-author-name {
    font-size: 0.9rem;
  }
  
  /* 评论内容区域优化 */
  .comment-content {
    padding-left: 50px;
    font-size: 0.85rem;
  }
  
  /* 评论操作区域响应式优化 */
  .comment-actions {
    padding-left: 50px;
  }
  
  .like-button {
    font-size: 0.75rem;
  }
  
  .reply {
    padding-left: 0;
  }
  
  /* 回复按钮样式优化 */
  .reply a {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }
  
  /* 调整评论表单元素 */
  .comment-form {
    padding: 1rem;
    margin-top: 1.5rem;
  }
  
  .comment-form input,
  .comment-form textarea {
    padding: 0.5rem;
  }
  
  /* 调整提示信息样式 */
  .comment-awaiting-moderation {
    padding: 0.6rem;
    font-size: 0.9rem;
  }
}