/* 文章页面专用样式 */

.article-main {
    padding: 2rem 0;
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
}

.article-content {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.article-header {
    padding: 2rem;
    border-bottom: 2px solid #e9ecef;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.article-badge {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.article-badge.strategy {
    background: linear-gradient(135deg, #27ae60, #229954);
}

.article-badge.update {
    background: linear-gradient(135deg, #4a90e2, #357abd);
}

.article-badge.event {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.article-badge.team {
    background: linear-gradient(135deg, #8e44ad, #7d3c98);
}

.article-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
    font-weight: 700;
}

.article-meta {
    display: flex;
    gap: 2rem;
    color: #6c757d;
    font-size: 1rem;
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-body {
    padding: 2rem;
    line-height: 1.8;
    color: #2c3e50;
    font-size: 1.1rem;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
    color: #2c3e50;
    margin: 2.5rem 0 1.5rem 0;
    font-weight: 600;
}

.article-body h1 {
    font-size: 2.2rem;
    border-bottom: 3px solid #667eea;
    padding-bottom: 0.5rem;
}

.article-body h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.3rem;
}

.article-body h3 {
    font-size: 1.5rem;
    color: #495057;
}

.article-body h4 {
    font-size: 1.3rem;
    color: #495057;
}

.article-body p {
    margin: 1.5rem 0;
    line-height: 1.8;
}

.article-body ul,
.article-body ol {
    margin: 1.5rem 0;
    padding-left: 2.5rem;
}

.article-body li {
    margin: 0.8rem 0;
    line-height: 1.7;
}

.article-body blockquote {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-left: 4px solid #667eea;
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    font-style: italic;
    color: #495057;
    border-radius: 0 8px 8px 0;
    position: relative;
}

.article-body blockquote::before {
    content: '"';
    font-size: 4rem;
    color: #667eea;
    position: absolute;
    top: -10px;
    left: 15px;
    opacity: 0.3;
    font-family: serif;
}

.article-body code {
    background: #f1f3f4;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    color: #e83e8c;
    border: 1px solid #e9ecef;
}

.article-body pre {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 2rem 0;
    position: relative;
}

.article-body pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: 0.9rem;
    border: none;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.article-body th,
.article-body td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.article-body th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.article-body tr:nth-child(even) {
    background: #f8f9fa;
}

.article-body tr:hover {
    background: #e3f2fd;
    transition: background-color 0.3s ease;
}

.article-body hr {
    border: none;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 3rem 0;
    border-radius: 2px;
}

.article-body strong {
    color: #2c3e50;
    font-weight: 600;
}

.article-body em {
    color: #495057;
    font-style: italic;
}

.article-body a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.article-body a:hover {
    color: #764ba2;
    border-bottom-color: #764ba2;
}

/* 文章操作按钮 */
.article-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.4);
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.6);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .article-main {
        padding: 1rem 0;
    }
    
    .article-header {
        padding: 1.5rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-meta {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .article-body {
        padding: 1.5rem;
        font-size: 1rem;
    }
    
    .article-body h1 {
        font-size: 1.8rem;
    }
    
    .article-body h2 {
        font-size: 1.5rem;
    }
    
    .article-body h3 {
        font-size: 1.3rem;
    }
    
    .article-body ul,
    .article-body ol {
        padding-left: 2rem;
    }
    
    .article-body blockquote {
        padding: 1rem 1.5rem;
        margin: 1.5rem 0;
    }
    
    .article-body pre {
        padding: 1rem;
        font-size: 0.8rem;
    }
    
    .article-body table {
        font-size: 0.9rem;
    }
    
    .article-body th,
    .article-body td {
        padding: 10px 12px;
    }
    
    .article-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .article-header {
        padding: 1rem;
    }
    
    .article-title {
        font-size: 1.6rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .article-body {
        padding: 1rem;
    }
    
    .article-body h1 {
        font-size: 1.5rem;
    }
    
    .article-body h2 {
        font-size: 1.3rem;
    }
    
    .article-body h3 {
        font-size: 1.1rem;
    }
    
    .article-body blockquote {
        padding: 0.8rem 1rem;
    }
    
    .article-body pre {
        padding: 0.8rem;
        font-size: 0.75rem;
    }
}