/* Article Hero Banner - Left/Right Layout */
.article-hero {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.article-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.article-hero .container {
    max-width: 1200px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-category {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    width: fit-content;
    letter-spacing: 0.5px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.article-title {
    font-size: 2.8rem;
    margin: 0;
    line-height: 1.25;
    color: white;
    font-weight: 700;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.article-description {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    flex-wrap: wrap;
    padding-top: 10px;
}

.article-meta i {
    margin-right: 6px;
    color: rgba(255, 255, 255, 0.8);
}

.hero-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 4px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.1));
}

.hero-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

/* Article Layout */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 80px;
}

/* Article Content */
.article-content {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.article-content h2 {
    font-size: 1.75rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text-color);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.article-content h3 {
    font-size: 1.35rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.article-content p {
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 25px;
}

.article-content li {
    margin-bottom: 10px;
    line-height: 1.8;
    color: var(--text-light);
}

.article-content blockquote {
    margin: 30px 0;
    padding: 25px 30px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #fde8e7 100%);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 15px 15px 0;
    font-style: italic;
    font-size: 1.1rem;
}

.article-image {
    margin: 30px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.article-image img {
    width: 100%;
}

.article-image figcaption {
    padding: 15px;
    background: var(--bg-color);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: var(--white);
    padding: 25px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.sidebar-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
    font-family: var(--font-secondary);
    color: var(--text-dark);
}

/* Table of Contents */
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 0;
}

.toc-list a {
    display: block;
    padding: 12px 15px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.toc-list a:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: translateX(5px);
}

/* Recommended Articles */
.recommended-article {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.recommended-article:last-child {
    border-bottom: none;
}

.recommended-article:hover {
    transform: translateX(5px);
}

.recommended-thumb {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.recommended-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recommended-info h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    line-height: 1.4;
    transition: var(--transition);
}

.recommended-article:hover .recommended-info h4 {
    color: var(--primary-color);
}

.recommended-info span {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Responsive Article */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .article-hero {
        padding: 80px 0 50px;
        margin-top: 60px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-image img {
        height: 280px;
    }
    
    .article-title {
        font-size: 1.75rem;
    }
    
    .article-description {
        font-size: 1rem;
    }

    .article-content {
        padding: 25px;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
}


/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.6);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}
