﻿/**
 * Blog Single 博客详情 Page Styles
 * Blog Single 博客详情 页面样式
 * 
 * @package Milestrong
 * @since 2.0.0
 */

/* ============================================
   页面头部样式 - Page Header Styles
   ============================================ */

/* 页面头部容器 */
.page-blog-single .milestrong-page-header {
    height: 800px;
    /* 可以调整此页面的头部高度 */
}

/* 背景遮罩层透明度 */
.page-blog-single .milestrong-page-header-overlay {
    /* overlay removed */
    /* 可以调整此页面的遮罩透明度 */
}

/* 页面标题 */
.page-blog-single .milestrong-page-title {
    font-size: 48px;
    /* 可以调整此页面的标题字体大小 */
    text-align: center;
}

/* 页面副标题 */
.page-blog-single .milestrong-page-subtitle {
    font-size: 20px;
    padding: 12px 40px;
    border-radius: 50px;
    /* 可以调整此页面的副标题样式 */
}

/* ============================================
   页面内容样式 - Page Content Styles
   ============================================ */

/* 页面内容包装器 */
.page-blog-single .page-content-wrapper {
    padding: 80px 0;
    background: #fff;
    /* 可以调整此页面的内容区域内边距和背景 */
}

/* 文章内容 */
.page-blog-single .entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    /* 可以调整此页面的文字样式 */
}

/* 标题样式 */
.page-blog-single .entry-content h2 {
    font-size: 30px;
    color: #2c3e50;
    /* 可以调整此页面的H2标题样式 */
}

.page-blog-single .entry-content h3 {
    font-size: 24px;
    color: #2c3e50;
    /* 可以调整此页面的H3标题样式 */
}

/* 链接颜色 */
.page-blog-single .entry-content a {
    color: #667eea;
    /* 可以调整此页面的链接颜色 */
}

.page-blog-single .entry-content a:hover {
    color: #764ba2;
    /* 可以调整此页面的链接悬停颜色 */
}

/* ============================================
   响应式设计 - Responsive Design
   ============================================ */

/* 平板 */
@media screen and (max-width: 1024px) {
    .page-blog-single .milestrong-page-header {
        height: 500px;
    }
    
    .page-blog-single .milestrong-page-title {
        font-size: 40px;
    }
    
    .page-blog-single .milestrong-page-subtitle {
        font-size: 18px;
    }
    
    .page-blog-single .page-content-wrapper {
        padding: 60px 0;
    }
    
    /* 相关博客样式 */
    .blog-single-related-section .container {
        padding: 0 20px; /* 平板端使用正常内边距 */
    }
    
    .blog-single-related-wrapper {
        max-width: 800px; /* 平板端进一步减小宽度 */
    }
    
    .blog-single-related-navigation .nav-btn.nav-prev {
        left: -70px; /* 平板端调整按钮距离 */
    }
    
    .blog-single-related-navigation .nav-btn.nav-next {
        right: -70px; /* 平板端调整按钮距离 */
    }
    
    .blog-single-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .blog-single-related-card {
        margin: 10px;
    }
    
    .blog-single-related-card-image {
        width: calc(100% - 20px); /* 平板端减少边距 */
        margin: 10px;
        height: 180px;
    }
    
    .blog-single-related-card-content {
        padding: 15px 20px 20px 20px;
    }
    
    .blog-single-related-card-title {
        font-size: 16px;
    }
    
    .blog-single-related-title {
        font-size: 32px;
        margin-bottom: 50px;
    }
}

/* 手机 */
@media screen and (max-width: 768px) {
    .page-blog-single .milestrong-page-header {
        height: 350px;
    }
    
    .page-blog-single .milestrong-page-title {
        font-size: 32px;
    }
    
    .page-blog-single .milestrong-page-subtitle {
        font-size: 16px;
    }
    
    .page-blog-single .page-content-wrapper {
        padding: 40px 0;
    }
}

@media screen and (max-width: 480px) {
    .page-blog-single .milestrong-page-header {
        height: 280px;
    }
    
    .page-blog-single .milestrong-page-title {
        font-size: 28px;
    }
    
    .page-blog-single .milestrong-page-subtitle {
        font-size: 14px;
    }
    
    .page-blog-single .page-content-wrapper {
        padding: 30px 0;
    }
}

/* ============================================
   正文头部标题区样式 - Title Section Styles
   ============================================ */

.blog-single-title-section {
    padding: 60px 0 40px;
    background: var(--blog-content-bg, #ffffff);
}

.blog-single-title-wrapper {
    max-width: 1440px;
    margin: 0 auto;
}

.blog-single-title-content {
    text-align: center;
}

.blog-single-title {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 30px;
    line-height: 1.2;
}

.blog-single-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.blog-single-date {
    font-size: 16px;
    color: #ffffff;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.blog-single-date .icon-calendar {
    font-size: 18px;
    margin-right: 8px;
}

.blog-single-date .custom-date-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    margin-right: 5px;
}

.blog-single-share-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.blog-single-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f8f9fa;
    transition: all 0.3s ease;
    text-decoration: none;
}

.blog-single-share-btn:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.blog-single-share-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.blog-single-share-btn .share-icon {
    font-size: 20px;
    line-height: 1;
    color: #333;
}

.blog-single-share-btn:hover .share-icon {
    color: #017fff;
}

/* ============================================
   正文内容区样式 - Content Section Styles
   ============================================ */

.blog-single-content-section {
    padding: 40px 0 80px;
    background: var(--blog-content-bg, #ffffff);
}

.blog-single-content-wrapper {
    max-width: 1440px;
    margin: 0 auto;
}

.blog-single-article {
    background: transparent;
}

.blog-single-content {
    font-size: 16px;
    line-height: 1.8;
    color: #ffffff;
}

/* 正文内容样式 */
.blog-single-content h1,
.blog-single-content h2,
.blog-single-content h3,
.blog-single-content h4,
.blog-single-content h5,
.blog-single-content h6 {
    color: #ffffff;
    font-weight: 600;
    margin: 40px 0 20px;
    line-height: 1.3;
}

.blog-single-content h2 {
    font-size: 32px;
}

.blog-single-content h3 {
    font-size: 26px;
}

.blog-single-content h4 {
    font-size: 22px;
}

.blog-single-content p {
    margin: 0 0 20px;
}

.blog-single-content img {
    max-width: var(--blog-image-width-pc, 1000px);
    height: auto;
    margin: 30px auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.blog-single-content img:hover {
    transform: scale(1.02);
}

.blog-single-content a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.blog-single-content a:hover {
    color: #764ba2;
    border-bottom-color: #764ba2;
}

.blog-single-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 20px 30px;
    margin: 30px 0;
    font-style: italic;
    color: #555;
}

.blog-single-content ul,
.blog-single-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.blog-single-content li {
    margin: 8px 0;
}

.blog-single-content code {
    background: #f1f3f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.blog-single-content pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 30px 0;
}

.blog-single-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* 视频响应式 */
.blog-single-content iframe,
.blog-single-content video {
    max-width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    margin: 30px auto;
    display: block;
    border-radius: 8px;
}

/* 分页链接 */
.blog-single-page-links {
    margin: 40px 0 0;
    text-align: center;
}

.blog-single-page-links .page-links-title {
    font-weight: 600;
    margin-right: 15px;
}

.blog-single-page-links a,
.blog-single-page-links span {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    background: #f8f9fa;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.blog-single-page-links a:hover {
    background: #667eea;
    color: white;
}

/* ============================================
   相关博客区块样式 - Related Blogs Section
   ============================================ */

.blog-single-related-section {
    padding: 80px 0;
    background: var(--blog-related-bg, #f5f7fa);
    position: relative;
}

.blog-single-related-wrapper {
    max-width: 1400px; /* 进一步减小内容区域宽度，为按钮留出更多空间 */
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* 防止页面被撑宽 */
.page-blog-single {
    overflow-x: hidden; /* 隐藏水平滚动条 */
}

.page-blog-single body {
    overflow-x: hidden; /* 确保body也不会被撑宽 */
}

/* 确保有足够空间显示导航按钮 */
.blog-single-related-section {
    overflow: hidden; /* 防止按钮撑宽页面 */
    position: relative;
}

.blog-single-related-section .container {
    max-width: 1400px; /* 限制最大宽度 */
    padding: 0 60px; /* 增加左右内边距，为按钮留出足够空间 */
    position: relative;
}

.blog-single-related-title {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin: 0 0 60px;
}

.blog-single-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-single-related-card {
    background: #181822;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    margin: 15px; /* 四周边距 */
}

.blog-single-related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    background: var(--blog-card-hover-bg, rgba(0, 0, 0, 0.7)) !important;
}

/* 确保hover时整个卡片区域都变色 */
.blog-single-related-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    transition: background-color 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.blog-single-related-card:hover::before {
    background: var(--blog-card-hover-bg, rgba(0, 0, 0, 0.7));
}

.blog-single-related-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    width: calc(100% - 30px); /* 减去左右边距 */
    margin: 15px; /* 四周边距 */
    border-radius: 12px;
    z-index: 2;
}

.blog-single-related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 12px;
}

.blog-single-related-card:hover .blog-single-related-card-image img {
    transform: scale(1.05);
}

.blog-single-related-card-content {
    padding: 20px 25px 25px 25px;
    position: relative;
    transition: all 0.3s ease;
    background-color: transparent;
    z-index: 2;
}

/* 移除单独的内容区域hover效果，让整个卡片统一变色 */
.blog-single-related-card:hover .blog-single-related-card-content {
    color: #000; /* hover状态下黑色文字 */
}

.blog-single-related-card-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.8em; /* 确保两行高度 */
    max-height: 2.8em; /* 限制最大高度为两行 */
    word-wrap: break-word;
    word-break: break-word;
    color: #fff; /* 常态下白色文字 */
}

.blog-single-related-card-title a {
    color: #fff; /* 常态下白色文字 */
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-single-related-card:hover .blog-single-related-card-title,
.blog-single-related-card:hover .blog-single-related-card-title a {
    color: #000 !important; /* hover状态下黑色文字 */
}

.blog-single-related-card-meta {
    margin-bottom: 0;
}

.blog-single-related-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.blog-single-related-card-date {
    font-size: 14px;
    color: #fff; /* 常态下白色文字 */
    transition: color 0.3s ease;
    margin: 0;
    flex: 1;
}

.blog-single-related-card:hover .blog-single-related-card-date {
    color: #000 !important; /* hover状态下黑色文字 */
}

.blog-single-related-btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--blog-btn-start, #667eea), var(--blog-btn-end, #764ba2));
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    margin-left: 15px;
}

.blog-single-related-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    color: #fff;
}

.blog-single-related-card-actions {
    margin-top: 20px;
}

.blog-single-related-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--blog-btn-start, #017fff), var(--blog-btn-end, #0066cc));
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.blog-single-related-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(1, 127, 255, 0.3);
    color: white;
}

/* 移动端导航按钮 */
.blog-single-related-nav {
    display: none;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* PC端导航按钮 */
.blog-single-related-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    pointer-events: none;
}

/* 确保PC端显示导航按钮 */
@media screen and (min-width: 1200px) {
    .blog-single-related-navigation {
        display: block !important;
    }
    
    .blog-single-related-navigation .nav-btn {
        display: flex !important;
    }
}

.blog-single-related-navigation .nav-btn {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.blog-single-related-navigation .nav-btn:hover {
    background: #fff;
    border-color: #667eea;
    color: #667eea;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.blog-single-related-navigation .nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f5f5f5;
    border-color: #ddd;
    color: #999;
}

.blog-single-related-navigation .nav-btn:disabled:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.blog-single-related-navigation .nav-btn.nav-prev {
    left: -80px;
}

.blog-single-related-navigation .nav-btn.nav-next {
    right: -80px;
}

.blog-single-related-navigation .nav-btn .icon-chevron-left::before {
    content: '‹';
}

.blog-single-related-navigation .nav-btn .icon-chevron-right::before {
    content: '›';
}

.blog-single-related-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.blog-single-related-nav-btn:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.blog-single-related-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 指示器 (平板/移动端) */
.blog-single-related-indicators {
    display: none;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    padding: 0 20px; /* 左右内边距 */
}

.blog-single-related-indicators .indicators-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px; /* 指示器之间的间距 */
    flex-wrap: nowrap; /* 防止换行 */
}

.blog-single-related-indicators .indicator-dot {
    width: 14px; /* 稍微增大指示器尺寸 */
    height: 14px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0; /* 防止压缩 */
}

.blog-single-related-indicators .indicator-dot.active {
    background: #667eea;
    transform: scale(1.3); /* 稍微增大活跃状态的缩放 */
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4); /* 添加阴影效果 */
}

/* 无相关博客提示 */
.no-related-blogs {
    text-align: center;
    font-size: 18px;
    color: #666;
    padding: 40px 0;
}

/* ============================================
   响应式设计 - Responsive Design
   ============================================ */

/* 平板端 (768px-1199px) */
@media screen and (max-width: 1199px) and (min-width: 768px) {
    .blog-single-title {
        font-size: 40px;
    }
    
    .blog-single-content-wrapper {
        max-width: 800px;
    }
    
    .blog-single-content img {
        max-width: var(--blog-image-width-tablet, 100%);
    }
    
    .blog-single-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .blog-single-meta {
        gap: 30px;
    }
    
    .blog-single-share-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* 平板端按钮调整 */
    .blog-single-related-section .container {
        padding: 0 80px; /* 平板端减少内边距 */
    }
    
    .blog-single-related-navigation .nav-btn.nav-prev {
        left: -70px; /* 平板端调整按钮距离 */
    }
    
    .blog-single-related-navigation .nav-btn.nav-next {
        right: 125px; /* PAD端右按钮位置调整 */
    }
}

/* 移动端 (<768px) */
@media screen and (max-width: 767px) {
    .blog-single-title-section {
        padding: 40px 0 30px;
    }
    
    .blog-single-title {
        font-size: 32px;
        margin-bottom: 20px;
    }
    
    .blog-single-meta {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .blog-single-share-buttons {
        justify-content: flex-start;
        width: 100%;
    }
    
    .blog-single-share-btn {
        width: 44px;
        height: 44px;
    }
    
    .blog-single-share-btn img {
        width: 20px;
        height: 20px;
    }
    
    .blog-single-share-btn .share-icon {
        font-size: 18px;
    }
    
    .blog-single-content-section {
        padding: 30px 0 60px;
    }
    
    .blog-single-content-wrapper {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .blog-single-content {
        font-size: 15px;
    }
    
    .blog-single-content img {
        max-width: var(--blog-image-width-mobile, 100%);
        margin: 20px auto;
    }
    
    .blog-single-content h2 {
        font-size: 26px;
    }
    
    .blog-single-content h3 {
        font-size: 22px;
    }
    
    .blog-single-related-section {
        padding: 60px 0;
    }
    
    .blog-single-related-wrapper {
        max-width: 100%; /* 移动端使用全宽 */
        padding: 0 15px;
    }
    
    .blog-single-related-section .container {
        padding: 0 15px; /* 移动端使用较小内边距 */
    }
    
    .blog-single-related-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .blog-single-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .blog-single-related-card {
        margin: 10px;
    }
    
    .blog-single-related-card-image {
        margin: 10px 10px 0 10px;
        height: 180px;
    }
    
    .blog-single-related-card-content {
        padding: 15px 20px 20px 20px;
    }
    
    .blog-single-related-card-title {
        font-size: 16px;
    }
    
    /* 移动端点击整个卡片跳转 */
    .blog-single-related-card .blog-single-related-btn {
        display: none;
    }
    
    .blog-single-related-nav.mobile-only {
        display: flex;
    }
    
    .blog-single-related-indicators {
        display: flex;
        margin-top: 50px; /* 移动端增加顶部间距 */
        padding: 0 15px; /* 移动端调整左右内边距 */
    }
    
    .blog-single-related-indicators .indicators-wrapper {
        gap: 20px; /* 移动端增加指示器间距 */
    }
    
    .blog-single-related-indicators .indicator-dot {
        width: 16px; /* 移动端稍微增大指示器 */
        height: 16px;
    }
    
    .blog-single-related-indicators .indicator-dot.active {
        transform: scale(1.4); /* 移动端增大活跃状态缩放 */
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .mobile-tablet-only {
        display: block !important;
    }
}

/* 超小屏幕 */
@media screen and (max-width: 480px) {
    .blog-single-title {
        font-size: 28px;
    }
    
    .blog-single-content-wrapper {
        padding: 0 15px;
    }
    
    .blog-single-related-title {
        font-size: 24px;
    }
    
    .blog-single-related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-single-related-card {
        margin: 8px;
    }
    
    .blog-single-related-card-image {
        width: calc(100% - 16px); /* 移动端进一步减少边距 */
        margin: 8px;
        height: 160px;
    }
    
    .blog-single-related-card-content {
        padding: 12px 15px 15px 15px;
    }
    
    .blog-single-related-card-title {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .blog-single-related-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .blog-single-related-btn {
        align-self: stretch;
        text-align: center;
        margin-left: 0;
    }
}

/* ============================================
   图片灯箱效果 - Image Lightbox
   ============================================ */

.blog-image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.blog-image-lightbox.active {
    display: flex;
}

.blog-image-lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.blog-image-lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.blog-image-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   动态样式变量 - Dynamic Style Variables
   ============================================ */

/* 这些变量将通过 JavaScript 动态设置 */
:root {
    --blog-content-bg: #ffffff;
    --blog-related-bg: #f5f7fa;
    --blog-image-width-pc: 1000px;
    --blog-image-width-tablet: 80%;
    --blog-image-width-mobile: 70%;
    --blog-btn-start: #017fff;
    --blog-btn-end: #0066cc;
    --blog-card-hover-bg: rgba(0, 0, 0, 0.7);
}

/* 工具类 */
.desktop-only {
    display: block;
}

.mobile-tablet-only {
    display: none;
}

/* 容器内边距调整 */
.page-blog-single .container {
    padding-left: 20px;
    padding-right: 20px;
}

@media screen and (max-width: 767px) {
    .page-blog-single .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* ============================================
   正文内容图片样式 - Content Images Styles
   ============================================ */

/* 正文内容图片 - 固定宽度设置 */
.blog-content img,
.blog-content-image {
    max-width: 1000px;
    width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-content img:hover,
.blog-content-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* 响应式适配 */
@media screen and (max-width: 1200px) {
    .blog-content img,
    .blog-content-image {
        max-width: 90%;
    }
}

@media screen and (max-width: 768px) {
    .blog-content img,
    .blog-content-image {
        max-width: 100%;
        margin: 15px auto;
        border-radius: 6px;
    }
}

@media screen and (max-width: 480px) {
    .blog-content img,
    .blog-content-image {
        margin: 10px auto;
        border-radius: 4px;
    }
}

/* ============================================
   文章底部导航样式 - Article Navigation Styles
   ============================================ */

.blog-single-navigation {
    padding: 40px 0;
    position: relative;
    background-color: #0f1419;
}

.blog-navigation-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    text-align: center;
}

.blog-navigation-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 0 40px 0;
    position: relative;
}

.blog-navigation-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.blog-navigation-buttons .nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    border: none;
    color: #1a1a2e;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: none;
    position: relative;
}

.blog-navigation-buttons .nav-button::before {
    display: none;
}

.blog-navigation-buttons .nav-button:hover {
    transform: none;
    box-shadow: none;
}

.blog-navigation-buttons .nav-button.disabled {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.3);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.blog-navigation-buttons .nav-button.disabled:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.3);
    transform: none;
    box-shadow: none;
}

.blog-navigation-buttons .nav-icon {
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    font-style: normal;
}

/* 导航按钮图标图片 */
.blog-navigation-buttons .nav-icon-img {
    width: auto;
    height: auto;
    object-fit: contain;
    pointer-events: none;
}

/* hover 图标默认隐藏 */
.blog-navigation-buttons .nav-back-hover,
.blog-navigation-buttons .nav-prev-hover,
.blog-navigation-buttons .nav-next-hover {
    display: none;
}

/* hover 时切换：隐藏常态，显示 hover */
.blog-navigation-buttons .nav-button.nav-back:hover .nav-back-default { display: none; }
.blog-navigation-buttons .nav-button.nav-back:hover .nav-back-hover { display: inline; }
.blog-navigation-buttons .nav-button.nav-prev:hover .nav-prev-default { display: none; }
.blog-navigation-buttons .nav-button.nav-prev:hover .nav-prev-hover { display: inline; }
.blog-navigation-buttons .nav-button.nav-next:hover .nav-next-default { display: none; }
.blog-navigation-buttons .nav-button.nav-next:hover .nav-next-hover { display: inline; }

.blog-navigation-buttons .nav-back {
    color: #fff;
}

/* 响应式 */
@media screen and (max-width: 768px) {
    .blog-single-navigation { padding: 30px 0; }
    .blog-navigation-buttons { gap: 15px; }
    .blog-navigation-buttons .nav-button { width: 45px; height: 45px; }
    .blog-navigation-buttons .nav-icon { font-size: 18px; }
}

@media screen and (max-width: 480px) {
    .blog-single-navigation { padding: 25px 0; }
    .blog-navigation-buttons { gap: 12px; }
    .blog-navigation-buttons .nav-button { width: 40px; height: 40px; }
    .blog-navigation-buttons .nav-icon { font-size: 16px; }
}

/* end of file */