/* Blog Post Styles */

/* Post Header */
.post-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 140px 20px 60px;
    color: white;
}

.post-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.post-breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.post-breadcrumb a:hover {
    opacity: 0.8;
}

.post-breadcrumb i {
    font-size: 0.7rem;
}

.post-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    max-width: 900px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.post-category {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 500;
}

.post-date,
.post-read-time,
.post-views {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.post-tags .tag {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Featured Image */
.post-featured-image {
    max-width: 1400px;
    margin: -40px auto 60px;
    padding: 0 20px;
}

.post-featured-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Post Content */
.post-content {
    padding: 60px 20px;
    background: #f8f9fa;
}

.post-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Post Main */
.post-main {
    background: white;
    border-radius: 20px;
    padding: 60px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.post-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2d3748;
}

.post-body .lead {
    font-size: 1.3rem;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-left: 4px solid #667eea;
    border-radius: 10px;
}

.post-body h2 {
    font-size: 2rem;
    font-weight: 600;
    margin: 50px 0 25px;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 15px;
}

.post-body h2 i {
    color: #667eea;
    font-size: 1.8rem;
}

.post-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 40px 0 20px;
    color: #2d3748;
}

.post-body h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 30px 0 15px;
    color: #2d3748;
}

.post-body p {
    margin-bottom: 25px;
}

.post-body ul,
.post-body ol {
    margin: 25px 0;
    padding-left: 30px;
}

.post-body li {
    margin-bottom: 15px;
    line-height: 1.8;
}

.post-body li strong {
    color: #667eea;
    font-weight: 600;
}

.post-body blockquote {
    margin: 40px 0;
    padding: 30px 40px;
    background: #f8f9fa;
    border-left: 5px solid #667eea;
    border-radius: 10px;
    position: relative;
}

.post-body blockquote i.fa-quote-left {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 2rem;
    color: #667eea;
    opacity: 0.3;
}

.post-body blockquote p {
    font-style: italic;
    color: #4a5568;
    margin: 0;
    padding-left: 30px;
}

/* Post Images */
.post-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.post-image-grid img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.post-image-single {
    margin: 40px 0;
    text-align: center;
}

.post-image-single img {
    width: 100%;
    max-width: 800px;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.image-caption {
    margin-top: 15px;
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
}

/* Feature Cards */
.feature-cards {
    display: grid;
    gap: 20px;
    margin: 30px 0;
}

.feature-card-inline {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.feature-card-inline:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    transform: translateX(5px);
}

.feature-card-inline i {
    font-size: 2rem;
    color: #667eea;
    flex-shrink: 0;
}

.feature-card-inline h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
}

.feature-card-inline p {
    margin: 0;
    font-size: 1rem;
    color: #666;
}

/* Audience Grid */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.audience-item {
    text-align: center;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.audience-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.audience-item i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 15px;
}

.audience-item:hover i {
    color: white;
}

.audience-item p {
    margin: 0;
    font-weight: 500;
}

/* Why Choose */
.why-choose {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.why-item {
    text-align: center;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 15px;
    position: relative;
    transition: all 0.3s ease;
}

.why-item:hover {
    background: white;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
    transform: translateY(-5px);
}

.why-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.why-item h4 {
    margin: 15px 0 10px;
    font-size: 1.1rem;
}

.why-item p {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
}

/* Testimonials */
.testimonials {
    display: grid;
    gap: 25px;
    margin: 30px 0;
}

.testimonial {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.testimonial-stars {
    color: #fbbf24;
    margin-bottom: 15px;
}

.testimonial p {
    font-style: italic;
    color: #4a5568;
    margin-bottom: 15px;
}

.testimonial-author {
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 600;
}

/* Post CTA */
.post-cta {
    margin: 60px 0 40px;
    padding: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    text-align: center;
    color: white;
}

.post-cta h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.post-cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    color: #667eea;
    padding: 18px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Post Footer */
.post-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e2e8f0;
}

.post-share h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #2d3748;
}

.share-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-btn.weixin {
    background: #07c160;
    color: white;
}

.share-btn.weibo {
    background: #e6162d;
    color: white;
}

.share-btn.qq {
    background: #12b7f5;
    color: white;
}

.share-btn.link {
    background: #64748b;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Related Posts */
.related-posts {
    margin-top: 60px;
}

.related-posts h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #2d3748;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.related-post-card {
    background: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
}

.related-post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-post-content {
    padding: 20px;
}

.related-post-content h4 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.related-post-content h4 a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-post-content h4 a:hover {
    color: #667eea;
}

.related-post-date {
    font-size: 0.9rem;
    color: #666;
}

/* Post Sidebar */
.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.post-sidebar .sidebar-widget {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Author Card */
.author-card {
    text-align: center;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 4px solid #667eea;
}

.author-card h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2d3748;
}

.author-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.author-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s ease;
}

.author-link:hover {
    gap: 12px;
}

/* Table of Contents */
.toc-widget h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #2d3748;
}

.toc {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toc-link {
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #2d3748;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.toc-link:hover,
.toc-link.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-left-color: #667eea;
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .post-layout {
        grid-template-columns: 1fr 300px;
        gap: 40px;
    }

    .post-main {
        padding: 40px;
    }
}

@media (max-width: 968px) {
    .post-layout {
        grid-template-columns: 1fr;
    }

    .post-sidebar {
        order: -1;
    }

    .post-main {
        padding: 30px;
    }

    .post-body {
        font-size: 1rem;
    }

    .post-image-grid {
        grid-template-columns: 1fr;
    }

    .audience-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .post-header {
        padding: 120px 20px 40px;
    }

    .post-title {
        font-size: 2rem;
    }

    .post-meta {
        gap: 15px;
        font-size: 0.85rem;
    }

    .post-featured-image {
        margin: -20px auto 40px;
    }

    .post-content {
        padding: 40px 15px;
    }

    .post-main {
        padding: 25px;
        border-radius: 15px;
    }

    .post-body .lead {
        font-size: 1.1rem;
        padding: 20px;
    }

    .post-body h2 {
        font-size: 1.5rem;
        margin: 35px 0 20px;
    }

    .post-body h2 i {
        font-size: 1.4rem;
    }

    .post-cta {
        padding: 30px 20px;
    }

    .post-cta h3 {
        font-size: 1.5rem;
    }

    .post-cta p {
        font-size: 1rem;
    }

    .audience-grid {
        grid-template-columns: 1fr;
    }

    .why-choose {
        grid-template-columns: 1fr;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
        justify-content: center;
    }
}
