/* 文章页面通用样式 */
:root {
    --article-max-width: 900px;
    --article-heading-color: #1d3557;
    --article-link-color: #2563eb;
    --article-link-hover: #1e40af;
    --article-blockquote-bg: #f8fafc;
    --article-blockquote-border: #e2e8f0;
    --article-code-bg: #f1f5f9;
    --article-table-border: #e2e8f0;
    --article-table-header-bg: #f1f5f9;
}

/* 文章容器 */
.article-container {
    padding: 2rem 0 4rem;
    background-color: var(--background-color);
}

/* 面包屑导航 */
.breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 14px;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

/* 文章内容 */
.article-content {
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.article-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.article-title {
    font-size: 2.2rem;
    color: var(--text-color);
    margin: 0 0 1rem;
    line-height: 1.3;
}

.article-meta {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 文章摘要 */
.article-summary {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 2rem;
}

.article-summary h2 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.article-summary p {
    margin: 0;
    line-height: 1.6;
}

/* 文章章节 */
.article-section {
    margin-bottom: 3rem;
}

.article-section h2 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1.25rem;
    color: var(--text-color);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.article-section h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.article-section p {
    margin: 0 0 1rem;
    line-height: 1.7;
    color: var(--text-color);
}

.article-section ul, .article-section ol {
    margin: 0 0 1.5rem 1.5rem;
    line-height: 1.7;
}

.article-section li {
    margin-bottom: 0.5rem;
}

/* 步骤指南 */
.step-guide {
    counter-reset: step-counter;
}

.step {
    display: flex;
    margin-bottom: 2rem;
    position: relative;
}

.step-number {
    flex: 0 0 36px;
    height: 36px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.step-content {
    flex: 1;
}

.step-image {
    max-width: 100%;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
}

/* 类型卡片 */
.type-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.type-card {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.type-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.type-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    margin-bottom: 1rem;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 24px;
}

.tool-icon {
    background-color: #f0f7ff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230071e3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z'%3E%3C/path%3E%3C/svg%3E");
}

.list-icon {
    background-color: #fff0f7;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23e3004e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='8' y1='6' x2='21' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='12' x2='21' y2='12'%3E%3C/line%3E%3Cline x1='8' y1='18' x2='21' y2='18'%3E%3C/line%3E%3Cline x1='3' y1='6' x2='3.01' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='12' x2='3.01' y2='12'%3E%3C/line%3E%3Cline x1='3' y1='18' x2='3.01' y2='18'%3E%3C/line%3E%3C/svg%3E");
}

.info-icon {
    background-color: #f2fcf5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2334c759' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='16' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'%3E%3C/line%3E%3C/svg%3E");
}

.comparison-icon {
    background-color: #f7f2ff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%238e44ad' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='16 3 21 3 21 8'%3E%3C/polyline%3E%3Cline x1='4' y1='20' x2='21' y2='3'%3E%3C/line%3E%3Cpolyline points='21 16 21 21 16 21'%3E%3C/polyline%3E%3Cline x1='15' y1='15' x2='21' y2='21'%3E%3C/line%3E%3Cline x1='4' y1='4' x2='9' y2='9'%3E%3C/line%3E%3C/svg%3E");
}

.modifier-icon {
    background-color: #fff8e1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ff9500' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'%3E%3C/path%3E%3C/svg%3E");
}

.audience-icon {
    background-color: #e6f7ff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231677ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='9' cy='7' r='4'%3E%3C/circle%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'%3E%3C/path%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'%3E%3C/path%3E%3C/svg%3E");
}

/* 筛选步骤 */
.filter-steps {
    margin-top: 1.5rem;
}

.filter-step {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px dashed var(--border-color);
}

.filter-step:last-child {
    border-bottom: none;
}

/* 提示列表 */
.tips-list {
    margin-top: 1.5rem;
}

.tip-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.tip-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.tip-item h3 {
    color: var(--primary-color);
    margin-top: 0;
}

/* FAQ 列表 */
.faq-list {
    margin-top: 1.5rem;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h3 {
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 0.75rem;
}

/* 文章CTA */
.article-cta {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 3rem;
}

.article-cta h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* 相关文章 */
.related-articles {
    margin-bottom: 2rem;
}

.related-articles h2 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    color: var(--text-color);
}

.article-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.article-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.article-card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.article-card-content {
    padding: 1.25rem;
}

.article-card h3 {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-card h3 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.article-card h3 a:hover {
    color: var(--primary-color);
}

.article-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 1rem;
    line-height: 1.5;
}

.read-more {
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
}

.read-more:hover {
    color: var(--primary-hover);
}

.read-more::after {
    content: "→";
    margin-left: 4px;
    transition: transform 0.2s;
}

.read-more:hover::after {
    transform: translateX(2px);
}

/* 文章导航 */
.article-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.article-nav-prev,
.article-nav-next {
    flex: 0 0 48%;
}

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

.article-navigation a {
    display: inline-block;
    color: var(--text-color);
    text-decoration: none;
    padding: 0.75rem 1rem;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.article-navigation a:hover {
    color: var(--primary-color);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .article-content {
        padding: 1.5rem;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .type-cards,
    .article-cards {
        grid-template-columns: 1fr;
    }
    
    .step {
        flex-direction: column;
    }
    
    .step-number {
        margin-bottom: 1rem;
    }
    
    .article-navigation {
        flex-direction: column;
    }
    
    .article-nav-prev,
    .article-nav-next {
        flex: 0 0 100%;
        margin-bottom: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .article-header,
    .article-content,
    .related-articles {
        padding: var(--spacing-md);
    }
    
    .step-item {
        padding-left: 2.5rem;
    }
    
    .step-number {
        width: 1.8rem;
        height: 1.8rem;
        font-size: 1rem;
    }
    
    .article-cta {
        padding: var(--spacing-lg);
    }
    
    .article-cta p {
        font-size: 1.1rem;
    }
    
    .article-body h2 {
        font-size: 1.5rem;
    }
    
    .article-body h3 {
        font-size: 1.3rem;
    }
} 