/* Articles Styles - 专门用于文章页面的样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Microsoft YaHei', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* Article Container */
.article-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background: white;
    min-height: 100vh;
}

/* Article Header */
.article-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e9ecef;
}

.article h1 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

/* Article Meta */
.article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.article-meta span {
    color: #6c757d;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-meta i {
    color: #4a5568;
}

/* Article Content */
.article-content {
    max-width: 900px;
    margin: 0 auto;
}

.article-intro {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    border-left: 5px solid #4a5568;
}

.article-intro p {
    font-size: 1.1em;
    color: #495057;
    margin: 0;
}

/* Headings */
.article h2 {
    font-size: 2em;
    color: #2c3e50;
    margin: 40px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #4a5568;
    font-weight: 600;
}

.article h3 {
    font-size: 1.4em;
    color: #495057;
    margin: 30px 0 15px 0;
    font-weight: 600;
}

.article h4 {
    font-size: 1.2em;
    color: #6c757d;
    margin: 20px 0 10px 0;
    font-weight: 600;
}

/* Paragraphs */
.article p {
    margin-bottom: 20px;
    color: #495057;
    font-size: 1.05em;
    line-height: 1.8;
}

/* Lists */
.article ul, .article ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article li {
    margin-bottom: 8px;
    color: #495057;
    font-size: 1.05em;
}

/* Strong and Emphasis */
.article strong {
    color: #2c3e50;
    font-weight: 600;
}

.article em {
    color: #6c757d;
    font-style: italic;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.feature-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.feature-item h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.feature-item p {
    color: #6c757d;
    margin: 0;
    font-size: 0.95em;
}

/* Template Grid */
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.template-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.template-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.template-preview {
    height: 150px;
    background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2em;
    font-weight: 600;
}

.template-info {
    padding: 15px;
}

.template-info h4 {
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 1.1em;
}

.template-info p {
    color: #6c757d;
    margin: 0;
    font-size: 0.9em;
}

/* Tips Section */
.tips-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
    border-left: 5px solid #28a745;
}

.tips-section h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tips-section h3 i {
    color: #28a745;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.comparison-table th {
    background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
    color: white;
    font-weight: 600;
}

.comparison-table tr:hover {
    background: #f8f9fa;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
    color: white;
    padding: 50px 30px;
    border-radius: 20px;
    text-align: center;
    margin: 50px 0;
}

.cta-section h2 {
    color: white;
    margin-bottom: 15px;
    border: none;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    font-size: 1.1em;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Related Articles */
.related-articles {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e9ecef;
}

.related-articles h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.related-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.related-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    color: #4a5568;
    padding: 12px 20px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.related-link:hover {
    background: #4a5568;
    color: white;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-container {
        padding: 20px 15px;
    }

    .article h1 {
        font-size: 2em;
    }

    .article h2 {
        font-size: 1.6em;
    }

    .article-meta {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

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

    .related-links {
        flex-direction: column;
        align-items: center;
    }

    .cta-section {
        padding: 30px 20px;
    }

    .comparison-table {
        font-size: 0.9em;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px;
    }
}

/* Navigation for Articles */
.article-nav {
    background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(74, 85, 104, 0.3);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2em;
    font-weight: 600;
}

.nav-brand i {
    font-size: 1.5em;
}

.nav-actions {
    display: flex;
    gap: 10px;
}

.editor-entry {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #4a5568 !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    font-weight: 600 !important;
}

.editor-entry:hover {
    background: rgba(255, 255, 255, 1) !important;
    color: #4a5568 !important;
    transform: translateY(-2px) scale(1.05) !important;
}

.article-nav a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.article-nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Breadcrumb */
.breadcrumb {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.breadcrumb a {
    color: #4a5568;
    text-decoration: none;
    margin: 0 5px;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #6c757d;
    margin: 0 5px;
}

/* Print Styles */
@media print {
    .article-nav,
    .breadcrumb,
    .cta-section,
    .related-articles {
        display: none;
    }

    .article-container {
        max-width: none;
        margin: 0;
        padding: 20px;
    }

    body {
        background: white;
    }
}