/* 
   Article Detail Page Specific Styles
   Namespace: .content-page
*/

.content-page {
    background-color: #fff;
}

/* Page Hero & Breadcrumb */
.content-hero {
    position: relative;
    height: 200px;
    background: #0f0524;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.content-hero-bg {
    position: absolute;
    inset: 0;
    background: url('../img/banner.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.15;
    z-index: 1;
}

.content-hero .container {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    font-weight: 500;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #7c3aed;
}

.breadcrumb .sep {
    margin: 0 10px;
    opacity: 0.5;
}

.breadcrumb .current {
    color: #fff;
}

/* Article Layout */
.article-container-section {
    padding: 80px 0;
    background: #fcfbfe;
}

.article-main-flex {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

/* Main Article Content Box */
.article-body-box {
    flex: 1;
    background: #fff;
    padding: 60px;
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.05);
    border: 1px solid rgba(124, 58, 237, 0.05);
}

.article-header {
    margin-bottom: 45px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.article-meta-top {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.article-tag {
    background: #f3efff;
    color: #7c3aed;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
}

.article-time {
    color: #999;
    font-size: 14px;
}

.article-title {
    font-size: 42px;
    color: #1a1a1a;
    line-height: 1.3;
    font-weight: 800;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

.article-stats {
    display: flex;
    gap: 30px;
    color: #888;
    font-size: 14px;
}

.article-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Rich Text Content */
.article-content-real {
    font-size: 18px;
    color: #444;
    line-height: 2;
    text-align: justify;
}

.article-content-real p {
    margin-bottom: 30px;
}

.article-content-real img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 20px 0;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.article-content-real h2, .article-content-real h3 {
    color: #1a1a1a;
    margin: 50px 0 25px;
    font-weight: 800;
}

.article-content-real h2 { font-size: 28px; }
.article-content-real h3 { font-size: 22px; }

/* Article Footer */
.article-footer-tools {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-tags-links {
    display: flex;
    gap: 12px;
}

.tag-item {
    color: #7c3aed;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.tag-item:hover {
    opacity: 0.7;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #666;
    font-size: 14px;
}

.share-btn {
    padding: 6px 15px;
    background: #f8f8f8;
    border-radius: 20px;
    color: #333;
    transition: all 0.3s;
}

.share-btn:hover {
    background: #7c3aed;
    color: #fff;
}

/* Post Navigation */
.post-nav {
    margin-top: 60px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    background: #fbfaff;
    padding: 30px;
    border-radius: 20px;
}

.post-nav > div {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.nav-label {
    font-size: 11px;
    font-weight: 900;
    color: #bbb;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.post-nav a {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    transition: color 0.3s;
}

.post-nav a:hover {
    color: #7c3aed;
}

.nav-next {
    text-align: right;
}

/* Sidebar Styles */
.article-sidebar {
    width: 360px;
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: #fff;
    padding: 35px;
    border-radius: 24px;
    margin-bottom: 30px;
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.03);
    border: 1px solid rgba(124, 58, 237, 0.05);
}

.widget-title {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: #7c3aed;
    border-radius: 2px;
}

.hot-list {
    list-style: none;
}

.hot-list li {
    margin-bottom: 20px;
}

.hot-list li:last-child { margin-bottom: 0; }

.hot-list a {
    display: flex;
    gap: 15px;
    align-items: center;
}

.hot-index {
    width: 24px;
    height: 24px;
    background: #f3efff;
    color: #7c3aed;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.hot-title {
    font-size: 15px;
    color: #444;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hot-list li:hover .hot-title {
    color: #7c3aed;
}

.promo-card {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: #fff;
    text-align: center;
}

.promo-card h3 {
    color: #fff;
    font-size: 22px;
    margin-bottom: 15px;
}

.promo-card p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 25px;
    line-height: 1.6;
}

.btn-sidebar-cta {
    display: block;
    background: #fff;
    color: #7c3aed;
    padding: 12px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 15px;
    transition: all 0.3s;
}

.btn-sidebar-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Related Articles Section */
.related-articles-section {
    padding-bottom: 100px;
}

.section-header-mini {
    margin-bottom: 40px;
}

.section-header-mini h2 {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.header-line {
    width: 60px;
    height: 4px;
    background: #7c3aed;
    border-radius: 2px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all 0.4s;
    border: 1px solid rgba(124, 58, 237, 0.03);
}

.related-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.08);
}

.related-card .card-img {
    height: 180px;
    overflow: hidden;
}

.related-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.related-card:hover .card-img img {
    transform: scale(1.1);
}

.related-card .card-info {
    padding: 25px;
}

.related-card h4 {
    font-size: 18px;
    color: #1a1a1a;
    line-height: 1.5;
    margin-bottom: 15px;
    font-weight: 700;
}

.related-card time {
    font-size: 13px;
    color: #999;
}

/* Responsive */
@media (max-width: 1200px) {
    .article-main-flex {
        flex-direction: column;
    }
    .article-sidebar {
        width: 100%;
        position: static;
    }
    .hot-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .article-body-box {
        padding: 30px;
    }
    .article-title {
        font-size: 30px;
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
    .hot-list {
        grid-template-columns: 1fr;
    }
}
