/* ============================================
   文章详情页共享样式
   从 taobao/douyin/pdd/jd_article.html 提取合并
   ============================================ */

/* 文章容器 */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

/* 文章头部 */
.article-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

/* 标签 */
.article-tags {
    margin-top: 1rem;
}

.article-tag {
    display: inline-block;
    background: #f3f4f6;
    color: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    margin-right: 0.5rem;
}

/* 文章正文 */
.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 3rem;
}

.article-content h1,
.article-content h2,
.article-content h3 {
    color: #1f2937;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content h1 { font-size: 2rem; }
.article-content h2 { font-size: 1.5rem; }
.article-content h3 { font-size: 1.25rem; }

.article-content pre {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
}

.article-content code {
    background: #f1f5f9;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.875rem;
}

.article-content th,
.article-content td {
    border: 1px solid #e5e7eb;
    padding: 0.5rem 1rem;
    text-align: left;
}

.article-content th {
    background: #f9fafb;
    font-weight: 600;
}

/* 返回按钮 */
.back-to-platform {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: all 0.2s;
}

.back-to-platform:hover {
    background: #e5e7eb;
    color: #1f2937;
}

/* ============================================
   文章内容中的特色组件样式
   （抖音直播分析、拼多多竞品分析等文章使用）
   ============================================ */

/* 引言高亮 */
.article-lead {
    font-size: 1.2rem;
    color: #374151;
    font-weight: 500;
    margin-bottom: 2rem;
    text-align: center;
    font-style: italic;
}

/* 高亮提示框 */
.highlight-box {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.highlight-box h4 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* 分析结果框 */
.analysis-result {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.analysis-result h4 {
    color: #0c4a6e;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* 决策框架 */
.decision-framework {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 0.75rem;
    padding: 2rem;
    margin: 2rem 0;
}

.framework-steps {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.step {
    flex: 1;
    text-align: center;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #f59e0b;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 0.5rem;
}

.step-content h4 {
    color: #92400e;
    margin-bottom: 0.5rem;
}

/* 建议分类卡片 */
.suggestion-types {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.suggestion-type {
    flex: 1;
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 2px solid #e5e7eb;
}

.suggestion-type.urgent {
    border-color: #dc2626;
    background: #fef2f2;
}

.suggestion-type.optimize {
    border-color: #f59e0b;
    background: #fffbeb;
}

.suggestion-type.strategy {
    border-color: #6b7280;
    background: #f9fafb;
}

.suggestion-type h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* 工具卡片 */
.tool-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.tool-card h4 {
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.tool-features {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.tool-features span {
    background: #f3f4f6;
    color: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

/* 检查清单 */
.checklist {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.checklist h4 {
    color: #1f2937;
    margin-bottom: 1rem;
}

/* 文章总结框 */
.article-summary {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 0.75rem;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.article-summary h2 {
    color: #1f2937;
    margin-bottom: 1rem;
}

/* 预警系统（拼多多文章） */
.warning-system {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.warning-level {
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.warning-level.red {
    background: #fef2f2;
    border: 1px solid #fca5a5;
}

.warning-level.orange {
    background: #fff7ed;
    border: 1px solid #fdba74;
}

.warning-level.yellow {
    background: #fefce8;
    border: 1px solid #fde047;
}

.warning-level.blue {
    background: #eff6ff;
    border: 1px solid #93c5fd;
}

/* 指标仪表盘（拼多多文章） */
.metrics-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.metric-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
}

.metric-item h4 {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.metric-item p {
    color: #9ca3af;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.metric-item strong {
    color: #1f2937;
    font-size: 1.25rem;
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 768px) {
    .article-container {
        padding: 1rem;
    }

    .article-title {
        font-size: 2rem;
    }

    .framework-steps {
        flex-direction: column;
        gap: 1rem;
    }

    .suggestion-types {
        flex-direction: column;
        gap: 1rem;
    }

    .warning-system {
        grid-template-columns: 1fr;
    }

    .metrics-dashboard {
        grid-template-columns: repeat(2, 1fr);
    }
}
