/* ============================================
   文章详情页样式 - flowertocn.com
   ============================================ */

   .article-detail-page {
    padding: 30px 0 60px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 面包屑导航 ========== */
.breadcrumb {
    padding: 10px 0 20px;
    font-size: 13px;
    color: #888;
}

.breadcrumb a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #DD302D;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #ccc;
}

.breadcrumb .current {
    color: #333;
    font-weight: 500;
}

/* ========== 两列布局 ========== */
.article-detail-wrapper {
    display: flex;
    gap: 40px;
}

.article-detail-main {
    flex: 1;
    min-width: 0;
}

.article-detail-sidebar {
    flex: 0 0 280px;
}

/* ========== 文章头部 ========== */
.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.article-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.article-meta-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: #888;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.author-link {
    color: #DD302D;
    text-decoration: none;
}

.author-link:hover {
    text-decoration: underline;
}

/* ========== 文章内容 ========== */
.article-content {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 35px 0 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}

.article-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 30px 0 12px;
}

.article-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 25px 0 10px;
}

.article-content ul,
.article-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.article-content li {
    margin-bottom: 8px;
}

/* 文章内图片 */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    display: block;
}

.article-content img[style*="width"] {
    max-width: 100% !important;
    height: auto !important;
}

/* 表格 */
.article-content table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    overflow-x: auto;
    display: block;
}

.article-content table th,
.article-content table td {
    border: 1px solid #e0e0e0;
    padding: 10px 14px;
    text-align: left;
}

.article-content table th {
    background: #f8f9fa;
    font-weight: 600;
}

.article-content a {
    color: #DD302D;
    text-decoration: none;
}

.article-content a:hover {
    text-decoration: underline;
}

.article-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #DD302D;
    padding: 15px 20px;
    margin: 20px 0;
    font-style: italic;
    color: #555;
    border-radius: 0 8px 8px 0;
}

/* iframe 和 video 响应式 */
.article-content iframe,
.article-content video {
    max-width: 100%;
    height: auto;
}

/* ========== 文章底部 ========== */
.article-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.share-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.share-link {
    padding: 6px 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 30px;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}

.share-link:hover {
    background: #DD302D;
    color: white;
    border-color: #DD302D;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.back-link:hover {
    color: #DD302D;
    gap: 10px;
}

/* ========== 侧边栏 ========== */
.sidebar-widget {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.sidebar-widget h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #DD302D;
}

/* 相关文章列表 */
.related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.related-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.related-list a {
    display: block;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    transition: color 0.2s;
}

.related-list a:hover {
    color: #DD302D;
}

/* 联系信息 */
.contact-info-widget p {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

.contact-info-widget div {
    margin-bottom: 8px;
    font-size: 13px;
}

.contact-info-widget a {
    color: #DD302D;
    text-decoration: none;
}

.contact-info-widget a:hover {
    text-decoration: underline;
}

/* ========== 推荐文章区 ========== */
.latest-articles-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.latest-articles-section h2 {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    text-align: center;
}

.latest-articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.latest-article-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
}

.latest-article-item:hover {
    background: #DD302D;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(221, 48, 45, 0.15);
}

.latest-article-item:hover .latest-article-title {
    color: white;
}

.latest-article-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.latest-article-title {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    transition: color 0.2s;
}

/* ========== 响应式 ========== */
@media (max-width: 992px) {
    .article-detail-wrapper {
        flex-direction: column;
    }
    
    .article-detail-sidebar {
        flex: auto;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .sidebar-widget {
        margin-bottom: 0;
    }
    
    .latest-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .article-detail-page {
        padding: 20px 0 40px;
    }
    
    .article-header h1 {
        font-size: 26px;
    }
    
    .article-content {
        font-size: 16px;
    }
    
    .article-content h2 {
        font-size: 22px;
    }
    
    .article-content h3 {
        font-size: 19px;
    }
    
    .article-meta-detail {
        flex-direction: column;
        gap: 6px;
        font-size: 12px;
    }
    
    .article-detail-sidebar {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .article-share {
        flex-wrap: wrap;
    }
    
    .share-link {
        padding: 5px 12px;
        font-size: 12px;
    }
    
    .latest-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .latest-articles-section h2 {
        font-size: 20px;
    }
    
    .breadcrumb {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .article-header h1 {
        font-size: 22px;
    }
    
    .article-content {
        font-size: 15px;
    }
    
    .article-content h2 {
        font-size: 20px;
    }
    
    .article-content h3 {
        font-size: 17px;
    }
    
    .article-content ul,
    .article-content ol {
        padding-left: 18px;
    }
    
    .latest-article-item {
        padding: 12px 14px;
    }
    
    .latest-article-title {
        font-size: 13px;
    }
}