/* 博客系统样式 */

/* 博客专属导航栏样式 */
.blog-nav {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #667eea;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
    flex-wrap: wrap;
}

.nav-logo {
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    font-family: var(--chinese-font-family);
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.9rem;
    color: #cbd5e0;
    font-family: var(--chinese-font-family);
    margin-top: 0;
    margin-left: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex-grow: 1;
}

.nav-item {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-family: var(--chinese-font-family);
    font-weight: 500;
    border: 1px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.nav-item.active {
    background: #667eea;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 搜索框样式 */
.nav-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-input {
    background: transparent;
    border: none;
    color: white;
    padding: 8px 15px;
    width: 200px;
    outline: none;
    font-family: var(--chinese-font-family);
}

.search-input::placeholder {
    color: #cbd5e0;
}

.search-btn {
    background: #667eea;
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-family: var(--chinese-font-family);
}

.search-btn:hover {
    background: #5a67d8;
}

/* 博客容器 */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 博客头部 */
.blog-header {
    text-align: center;
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    margin-bottom: 40px;
    border-radius: 0 0 20px 20px;
}

.blog-title {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 15px;
    font-family: var(--chinese-font-family);
    font-weight: 600;
}

.blog-subtitle {
    font-size: 1.1rem;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-family: var(--chinese-font-family);
}

/* 博客布局 */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-bottom: 60px;
}

/* 分类导航 */
.category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.category-item {
    padding: 8px 16px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    text-decoration: none;
    color: #4a5568;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: var(--chinese-font-family);
}

.category-item:hover,
.category-item.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* 文章卡片 */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.post-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    max-width: 100%;
    width: 100%;
    height: 380px; /* 统一卡片高度 - 再次调高 */
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.post-image {
    width: 250px;
    flex-shrink: 0;
    height: 100%; /* 图片区域高度与卡片一致 */
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    flex: 1;
    padding: 25px;
    min-width: 0; /* 允许内容区域收缩 */
    display: flex;
    flex-direction: column;
    height: 100%; /* 内容区域高度与卡片一致 */
}

.post-title {
    margin-bottom: 15px;
    line-height: 1.4;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    min-height: 3em; /* 标题区域最小高度，确保多行标题显示完整 */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 标题最多显示2行 */
    -webkit-box-orient: vertical;
    line-clamp: 2; /* 标准属性 - 标题最多显示2行 */
    overflow: hidden;
}

.post-title a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #667eea;
}

.post-excerpt {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    flex: 1; /* 摘要区域占据剩余空间 */
    overflow: hidden; /* 隐藏溢出内容 */
    display: -webkit-box;
    -webkit-line-clamp: 8; /* 限制显示8行 - 再增加2行 */
    -webkit-box-orient: vertical;
    line-clamp: 8; /* 标准属性 - 限制显示8行 */
    max-height: 12.8em; /* 8行 * 1.6行高 */
    
    /* 美化样式 */
    background: #f8fafc; /* 浅灰色背景 */
    border-left: 4px solid #667eea; /* 左侧蓝色边线 */
    padding: 15px 20px 15px 20px; /* 内边距 */
    border-radius: 0 8px 8px 0; /* 圆角 */
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1); /* 轻微阴影 */
    font-style: italic; /* 斜体 */
    position: relative; /* 相对定位 */
}

/* 鼠标悬停效果 */
.post-card:hover .post-excerpt {
    background: #f0f4f8; /* 悬停时背景色加深 */
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15); /* 悬停时阴影加深 */
    transform: translateX(2px); /* 轻微移动效果 */
    transition: all 0.3s ease; /* 平滑过渡 */
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #718096;
}

.post-category {
    background: #e6fffa;
    color: #234e52;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.post-featured-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #8b4513;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 1px 3px rgba(255, 215, 0, 0.3);
}

.post-featured-badge i {
    font-size: 0.7rem;
}

/* 置顶文章样式 */
.sticky-post {
    border-left: 4px solid #ff6b6b;
    position: relative;
}

.sticky-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    z-index: 10;
}

.sticky-indicator i {
    font-size: 0.7rem;
}

/* 置顶文章徽章样式 */
.post-sticky-badge {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 1px 3px rgba(255, 107, 107, 0.3);
}

.post-sticky-badge i {
    font-size: 0.7rem;
}

.post-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-family: var(--chinese-font-family);
}

.post-title a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #667eea;
}



.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto; /* 将按钮推到内容区域底部 */
    padding-top: 15px; /* 添加顶部间距 */
    padding-bottom: 10px; /* 添加底部间距 */
}

.read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #5a67d8;
}

/* 侧边栏 */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.widget-title {
    font-size: 1.2rem;
    color: #2d3748;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
    font-family: var(--chinese-font-family);
}

/* 热门文章 */
.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popular-post {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.popular-title {
    color: #4a5568;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
    flex: 1;
    transition: color 0.3s ease;
    font-family: var(--chinese-font-family);
}

.popular-title:hover {
    color: #667eea;
}

.popular-views {
    font-size: 0.8rem;
    color: #a0aec0;
    white-space: nowrap;
}

/* 分类统计 */
.category-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f7fafc;
}

.category-name {
    color: #4a5568;
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: var(--chinese-font-family);
}

.category-name:hover {
    color: #667eea;
}

.category-count {
    background: #edf2f7;
    color: #4a5568;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

/* 文章详情页样式 */
.post-detail {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 40px;
}

.breadcrumb {
    padding: 20px 30px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #718096;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb .separator {
    color: #cbd5e0;
}

.breadcrumb .current {
    color: #2d3748;
    font-weight: 500;
}

.post-header {
    padding: 30px;
}

/* 面包屑导航样式 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 15px;
    white-space: nowrap;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #5a67d8;
    text-decoration: underline;
}

.breadcrumb .breadcrumb-separator {
    color: #718096;
    margin: 0 8px;
    font-weight: bold;
    font-size: 1rem;
}

.breadcrumb .current {
    color: #2d3748;
    font-weight: 500;
}

.post-header .post-title {
    font-size: 2.2rem;
    color: #2d3748;
    margin: 20px 0;
    line-height: 1.3;
    font-family: var(--chinese-font-family);
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.meta-left {
    display: flex;
    gap: 20px;
    color: #718096;
    font-size: 0.9rem;
}

.meta-right .post-category {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.post-featured-image {
    margin: 20px 0;
}

.post-featured-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.post-content {
    padding: 0 30px 30px;
}



.post-detail-excerpt {
    background: #f7fafc;
    padding: 20px;
    border-left: 4px solid #667eea;
    margin-bottom: 30px;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #4a5568;
}

.content-body {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #2d3748;
    font-family: var(--chinese-font-family);
}

.content-body h2,
.content-body h3,
.content-body h4 {
    margin: 30px 0 15px;
    color: #2d3748;
}

.content-body p {
    margin-bottom: 20px;
}

.content-body code {
    background: #f7fafc;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--english-font-family);
}

.content-body pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

/* 文章底部 */
.post-footer {
    padding: 30px;
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* 关键词区域 */
.post-tags {
    margin-bottom: 0;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.tags-label {
    font-weight: 500;
    color: #4a5568;
    margin-right: 10px;
    font-size: 0.9rem;
}

.tag {
    background: #edf2f7;
    color: #4a5568;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-right: 8px;
    margin-bottom: 5px;
    display: inline-block;
}

/* 分享按钮区域 */
.share-buttons {
    margin-bottom: 0;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.share-label {
    font-weight: 500;
    color: #4a5568;
    margin-right: 15px;
    font-size: 0.9rem;
}

.share-btn {
    background: #4a5568;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 18px;
    margin-right: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    font-family: var(--chinese-font-family);
}

.share-btn.wechat {
    background: #07c160;
    color: white;
}

.share-btn.weibo {
    background: #e6162d;
    color: white;
}

.share-btn.qq {
    background: #12b7f5;
    color: white;
}

.share-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* 导航按钮区域 */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 10px;
}

.nav-btn {
    padding: 8px 16px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: var(--chinese-font-family);
    flex: 1;
    text-align: center;
    max-width: 200px;
}

.nav-btn:hover {
    background: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 相关文章 */
.related-posts {
    margin-bottom: 40px;
}

.related-title {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 25px;
    text-align: center;
    font-family: var(--chinese-font-family);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.related-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.related-card:hover {
    transform: translateY(-3px);
}

.related-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-image {
    height: 160px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-card:hover .related-image img {
    transform: scale(1.05);
}

.related-content {
    padding: 20px;
}

.related-post-title {
    font-size: 1.1rem;
    color: #2d3748;
    margin-bottom: 10px;
    line-height: 1.4;
    font-family: var(--chinese-font-family);
}

.related-excerpt {
    color: #718096;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.related-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #a0aec0;
}

/* 页脚 */
.blog-footer {
    background: #2d3748;
    color: white;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 15px;
    color: #e2e8f0;
    font-family: var(--chinese-font-family);
}

.footer-section p {
    color: #a0aec0;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-section a {
    display: block;
    color: #cbd5e0;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding: 20px 0;
    text-align: center;
    color: #a0aec0;
}

/* 无文章提示 */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}

.no-posts h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-family: var(--chinese-font-family);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        height: 70px;
        padding: 0 15px;
    }
    
    .logo-text {
        font-size: 1.4rem;
    }
    
    .logo-subtitle {
        font-size: 0.8rem;
    }
    
    .nav-menu {
        gap: 15px;
    }
    
    .nav-item {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .nav-search {
        display: none;
    }
    
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .post-card {
        flex-direction: column;
    }
    
    .post-image {
        width: 100%;
        height: 200px;
    }
    
    .blog-title {
        font-size: 2rem;
    }
    
    .post-header .post-title {
        font-size: 1.8rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }
    
    .nav-logo {
        margin-bottom: 15px;
        align-items: center;
        text-align: center;
        flex-direction: row;
        gap: 8px;
    }
    
    .nav-menu {
        width: 100%;
        justify-content: center;
    }
    
    .nav-item {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
}

/* 风险提示样式 */
.sidebar-widget.risk-warning {
    border: 2px solid #f56565;
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    position: relative;
    overflow: hidden;
}

.sidebar-widget.risk-warning::before {
    content: "⚠️";
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    opacity: 0.3;
}

.sidebar-widget.risk-warning .widget-title {
    color: #c53030;
    border-bottom-color: #feb2b2;
    font-weight: 600;
}

.sidebar-widget.risk-warning .warning-content {
    font-size: 0.9rem;
    line-height: 1.5;
}

.sidebar-widget.risk-warning .warning-content p {
    margin-bottom: 10px;
    color: #742a2a;
}

.sidebar-widget.risk-warning .warning-content strong {
    color: #c53030;
}

/* 视频嵌入样式 */
.video-embed {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 宽高比 */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 1rem;
    background: white;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.video-platform {
    background: #667eea;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.youtube-video .video-platform {
    background: #ff0000;
}

.bilibili-video .video-platform {
    background: #fb7299;
}

.video-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.video-link:hover {
    text-decoration: underline;
    color: #5a67d8;
}

/* 视频清晰度控制按钮 */
.video-controls {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.quality-btn {
    background: #e9ecef;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quality-btn:hover {
    background: #dee2e6;
    border-color: #adb5bd;
}

.quality-btn.active {
    background: #667eea;
    border-color: #5a67d8;
    color: white;
}

.youtube-video .quality-btn.active {
    background: #ff0000;
    border-color: #cc0000;
}

.bilibili-video .quality-btn.active {
    background: #fb7299;
    border-color: #e55c85;
}

/* 响应式视频样式 */
@media (max-width: 768px) {
    .video-embed {
        margin: 1.5rem 0;
        border-radius: 8px;
    }
    
    .video-info {
        padding: 0.8rem;
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .video-platform {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
}

.sidebar-widget.risk-warning .warning-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.sidebar-widget.risk-warning .warning-content li {
    margin-bottom: 5px;
    color: #742a2a;
}

.sidebar-widget.risk-warning .warning-content em {
    color: #e53e3e;
    font-style: italic;
    font-weight: 500;
}

/* 文章风险提示横幅 */
.risk-warning-banner {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border: 2px solid #f56565;
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.risk-warning-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: #e53e3e;
}

.risk-warning-banner .warning-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.risk-warning-banner .warning-text {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #742a2a;
}

.risk-warning-banner .warning-text strong {
    color: #c53030;
    font-weight: 600;
}

.risk-warning-banner .warning-text em {
    color: #e53e3e;
    font-style: italic;
    font-weight: 500;
}

/* 文章结尾风险提示 */
.risk-warning-footer {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    text-align: center;
    position: relative;
}

.risk-warning-footer::before {
    content: "💡";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 5px 10px;
    border-radius: 20px;
    border: 2px solid #e2e8f0;
    font-size: 1.2rem;
}

.risk-warning-footer p {
    margin: 0;
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.6;
}

.risk-warning-footer strong {
    color: #2d3748;
    font-weight: 600;
}

/* 页脚风险提示 */
.footer-warning {
    background: #2a4365;
    border-top: 3px solid #e53e3e;
    padding: 20px 0;
    margin-top: 40px;
}

.footer-warning .warning-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-warning p {
    margin: 0;
    color: #cbd5e0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-warning strong {
    color: #fed7d7;
    font-weight: 600;
}

.footer-warning em {
    color: #feb2b2;
    font-style: italic;
    font-weight: 500;
}

/* 响应式风险提示 */
@media (max-width: 768px) {
    .sidebar-widget.risk-warning {
        margin-bottom: 20px;
    }
    
    .risk-warning-banner {
        flex-direction: column;
        text-align: center;
        padding: 15px;
        margin: 20px 0;
    }
    
    .risk-warning-banner .warning-icon {
        margin-bottom: 10px;
    }
    
    .risk-warning-footer {
        padding: 15px;
        margin: 20px 0;
    }
    
    .footer-warning {
        padding: 15px 0;
    }
    
    .footer-warning p {
        font-size: 0.85rem;
    }
}