/* AI格式指南栏目专用样式 */

/* 博客布局 */
.guide-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 1024px) {
    .guide-layout {
        grid-template-columns: 1fr;
    }
}

/* 文章主体 */
.article-main {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

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

/* 文章导航 */
.article-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e9ecef;
}

.article-nav-prev,
.article-nav-next {
    flex: 1;
}

.article-nav-next {
    text-align: right;
}

.article-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.article-nav a:hover {
    background: #667eea;
    color: white;
}

.article-nav a i {
    font-size: 12px;
}

/* 侧边栏通用样式 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.sidebar-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #667eea;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-card h4 i {
    color: #667eea;
}

/* 作者卡片 */
.author-card {
    text-align: center;
}

.author-avatar {
    margin-bottom: 16px;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.author-info h4 {
    font-size: 18px;
    border: none;
    padding: 0;
    margin-bottom: 10px;
    justify-content: center;
}

.author-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 热门文章列表 */
.popular-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.popular-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-list a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.popular-list a:hover {
    color: #667eea;
}

.popular-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.popular-title {
    font-size: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 快速链接 */
.quick-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-list li {
    margin-bottom: 8px;
}

.quick-list li:last-child {
    margin-bottom: 0;
}

.quick-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #546e7a;
    font-size: 14px;
    transition: all 0.3s ease;
}

.quick-list a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.quick-list a i {
    width: 16px;
    text-align: center;
}

/* 文章标签 */
.article-tag {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 15px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .article-title {
        font-size: 24px;
    }
    
    .article-nav {
        flex-direction: column;
        gap: 16px;
    }
    
    .article-nav-prev,
    .article-nav-next {
        text-align: center;
    }
    
    .sidebar {
        margin-top: 20px;
    }
}
