.article {
    padding-top: 70px;
    min-height: 100vh;
}

.article-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.article-category {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.article-date,
.article-read-time {
    font-size: 0.9rem;
    opacity: 0.9;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.article-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

.article-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
    display: flex;
    gap: 40px;
}

.article-toc {
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.article-toc h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.article-toc ul {
    list-style: none;
}

.article-toc li {
    margin-bottom: 10px;
}

.article-toc a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
}

.article-toc a:hover {
    color: var(--primary-color);
}

.article-toc a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.article-body {
    flex: 1;
    min-width: 0;
}

.article-section {
    margin-bottom: 50px;
    scroll-margin-top: 100px;
}

.article-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

.article-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 30px 0 15px;
    color: var(--text-color);
}

.article-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 20px 0 10px;
    color: var(--text-color);
}

.article-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 15px;
}

.article-section ul,
.article-section ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-section li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 10px;
}

.article-section strong {
    color: var(--text-color);
    font-weight: 600;
}

.info-box,
.tip-box,
.warning-box {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 25px 0;
    border-radius: 5px;
}

.info-box h4,
.tip-box h4,
.warning-box h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--text-color);
}

.warning-box {
    border-left-color: #ef4444;
}

.tip-box {
    border-left-color: #10b981;
}

.formula {
    background: var(--bg-light);
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    text-align: center;
    overflow-x: auto;
}

.code-block {
    background: #1e1e1e;
    border-radius: 8px;
    margin: 25px 0;
    overflow: hidden;
}

.code-block h4 {
    background: #2d2d2d;
    color: white;
    padding: 10px 20px;
    margin: 0;
    font-size: 1rem;
}

.code-block pre {
    margin: 0;
    padding: 20px;
    overflow-x: auto;
}

.code-block code {
    color: #d4d4d4;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
}

.comparison-table {
    margin: 30px 0;
    overflow-x: auto;
}

.comparison-table h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.comparison-table th,
.comparison-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--bg-light);
}

.comparison-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.comparison-table tr:hover {
    background: var(--bg-light);
}

.article-footer {
    background: var(--bg-light);
    padding: 40px 20px;
    border-top: 1px solid #e5e7eb;
}

.article-tags {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.article-tags .tag {
    background: white;
    padding: 8px 20px;
    border-radius: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.article-tags .tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.article-nav .nav-link {
    flex: 1;
    min-width: 200px;
    padding: 15px 25px;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 600;
}

.article-nav .nav-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

@media (max-width: 1024px) {
    .article-content {
        flex-direction: column;
    }
    
    .article-toc {
        width: 100%;
        position: static;
        margin-bottom: 30px;
    }
    
    .article-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .article-header {
        padding: 60px 20px;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-subtitle {
        font-size: 1rem;
    }
    
    .article-section h2 {
        font-size: 1.5rem;
    }
    
    .article-section h3 {
        font-size: 1.3rem;
    }
    
    .article-nav {
        flex-direction: column;
    }
    
    .article-nav .nav-link {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .article-title {
        font-size: 1.5rem;
    }
    
    .article-section h2 {
        font-size: 1.3rem;
    }
    
    .article-section p,
    .article-section li {
        font-size: 1rem;
    }
}