/* 小幅覆盖以融合 qqjpg.css 与 Bootstrap */
.navbar-brand img { max-height: 34px; vertical-align: middle; }
.index_listpic .thumbnail img, .thumbnail img { width: 100%; height: auto; }
.footer { padding: 20px 0; background: #333; margin-top: 20px; }
.link a { display: inline-block; margin-right: 10px; margin-bottom: 6px; }



/* Masonry waterfall layout */
.masonry {
  column-count: 1;
  column-gap: 8px;
  width: 100%;
}

/* Responsive column counts */
@media (min-width: 480px) { .masonry { column-count: 2; } }
@media (min-width: 768px) { .masonry { column-count: 3; } }
@media (min-width: 992px) { .masonry { column-count: 4; } }

.masonry-item {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  -moz-column-break-inside: avoid;
  margin-bottom: 8px;
  display: inline-block;
  width: 100%;
}

.masonry-item .thumbnail {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
  transition: transform .18s ease, box-shadow .18s ease;
  position: relative;
}

.masonry-item .thumbnail img {
  display: block;
  width: 100%;
  height: auto;
}

/* Hover effects */
.masonry-item .thumbnail:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.24);
}

/* Caption styling */
.thumbnail .caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px 8px;
  margin: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  color: #fff;
  opacity: 1;
  transition: background .15s ease;
}

.thumbnail .caption a {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
}

.masonry-item .thumbnail:hover .caption {
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
}

/* 详情页样式 */
body {
    background: #f5f5f5;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}


.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 15px 40px;
}

.main-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.main-content:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

/* 标题区域 */
.article-header {
    padding: 30px;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.article-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 15px;
    line-height: 1.4;
    letter-spacing: -0.5px;
}

.article-meta {
    color: #6c757d;
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-meta span i {
    color: #adb5bd;
    font-size: 16px;
}

/* 图片展示区域 */
.image-container {
    text-align: center;
    padding: 20px 0;
    margin: 0 0 20px;
    border-bottom: 1px solid #eee;
}

.main-image {
    max-width: 100%;
    max-height: 80vh;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.main-image:hover {
    transform: scale(1.01);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* 文章内容区域 */
.article-content {
    padding: 30px;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    text-align: justify;
}

/* 相关推荐 */
.related-section {
    margin-top: 50px;
}

.related-title {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #3498db;
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 24px;
    background: #3498db;
    border-radius: 2px;
}

.related-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 20px;
}

.related-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: #fff;
}

.related-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

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

.related-item:hover img {
    transform: scale(1.05);
}

.related-item .caption {
    padding: 12px;
    font-size: 14px;
    color: #555;
    background: #fff;
    font-weight: 500;
    line-height: 1.4;
    min-height: 60px;
    display: flex;
    align-items: center;
}

/* 推荐内容和猜你喜欢 */
.mt1 {
    margin-top: 50px;
}

/* 上一篇/下一篇 */
.next {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
}

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

.next li {
    margin-bottom: 10px;
}

/* 标签样式 */
.tag-link {
    display: inline-block;
    padding: 2px 8px;
    margin: 0 2px;
    background: #e3f2fd;
    color: #1976d2;
    text-decoration: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #bbdefb;
}

.tag-link:hover {
    background: #1976d2;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(25, 118, 210, 0.3);
}

/* 详情页文字链接样式 */
.article-header a,
.article-content a,
.next a,
.commend a,
.like-section a {
    color: #2c3e50;
    text-decoration: none;
}

.article-header a:hover,
.article-content a:hover,
.next a:hover,
.commend a:hover,
.like-section a:hover {
    color: #3498db;
    text-decoration: none;
}

/* 顶踩样式 */
.ding {
    height: 50px;
    line-height: 50px;
    width: 530px;
    margin: 5px auto 0 auto;        
    padding: 0 20px;
    overflow: hidden;
    text-align: center;
}

.ding a {
    display: inline-block;
    width: 210px;
    height: 50px;
    line-height: 50px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    margin: 0 10px;
}

.ding a i {
    display: inline-block;
    width: 21px;
    height: 18px;
    margin-right: 8px;
    vertical-align: middle;
    background-size: auto;
    background-repeat: no-repeat;
    background-image: url('/assets/img/ico.png');
}

.ding a.like {
    background: #ff6600;
}

.ding a.like:hover {
    background: #ff8533;
    box-shadow: 0 4px 8px rgba(255, 102, 0, 0.3);
    transform: translateY(-2px);
}

.ding a.zui {
    background: #4caf50;
}

.ding a.zui:hover {
    background: #66bb6a;
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
    transform: translateY(-2px);
}

.ding a.like i {
    background-position: -31px -23px;
}

.ding a.zui i {
    background-position: -31px -49px;
}



.ding a span {
    font-size: 16px;
    font-weight: 700;
    margin-left: 8px;
}

/* 文章标签区域 */
.article-tags {
    margin: 20px 30px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

/* 推荐内容和猜你喜欢区域 */
.commend,
.like-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 25px;
    margin-top: 30px;
    transition: box-shadow 0.3s ease;
}

.commend:hover,
.like-section:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

/* 底部样式 */
.footer {
    padding: 30px 0;
    background: #333;
    margin-top: 40px;
    color: #fff;
    text-align: center;
}

.footer .powered {
    margin: 0;
    padding: 0;
}

.footer .copyright {
    font-size: 14px;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 70px 10px 30px;
    }
    
    .article-header,
    .article-content,
    .next {
        padding: 20px;
    }
    
    .ding {
        padding: 15px;
        width: 100%;
        height: auto;
        text-align: center;
    }
    
    .ding a {
        display: inline-block;
        width: 45%;
        margin: 0 2.5%;
        min-width: 120px;
        text-align: center;
    }
    
    .ding a i {
        margin: 0 8px 0 0;
        vertical-align: middle;
    }
    
    .article-title {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .image-container {
        padding: 20px 10px;
    }
    
    .related-images {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .related-title {
        font-size: 20px;
    }
    
    .related-item .caption {
        font-size: 13px;
        padding: 10px;
    }
    
    .article-tags {
        margin-left: 20px;
        margin-right: 20px;
    }
    
    .commend,
    .like-section {
        padding: 20px;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        padding: 60px 8px 20px;
    }
    
    .article-header,
    .article-content,
    .next {
        padding: 15px;
    }
    
    .ding {
        padding: 15px;
        width: 100%;
        height: auto;
        text-align: center;
    }
    
    .ding a {
        display: inline-block;
        width: 45%;
        margin: 0 2.5%;
        min-width: 90px;
        font-size: 15px;
        text-align: center;
    }
    
    .ding a i {
        margin: 0 4px 0 0;
        vertical-align: middle;
    }
    
    .article-title {
        font-size: 22px;
    }
    
    .related-images {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
    }
    
    .related-title {
        font-size: 19px;
    }
    
    .related-item .caption {
        font-size: 12px;
        padding: 8px;
    }
}

