/* ===== fd-article.css — Article Detail Page (fully independent) ===== */

/* ===== Banner ===== */
.tal-banner {
    background-color: #1a1a2e;
    background-image: url(../images/edu/banners/banner-article.webp);
    background-size: cover;
    background-position: center;
    min-height: 327px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0 40px;
    text-align: center;
    color: #fff;
}

.tal-banner-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.tal-banner-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

/* ===== Content Area ===== */
.tal-content {
    padding: 23px 0 42px;
    background: #ffffff;
}

/* ===== Layout ===== */
.fda-layout {
    display: grid;
    grid-template-columns: 1fr 408px;
    gap: 24px;
    align-items: start;
}

.fda-main {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
}

.fda-layout .tal-sidebar {
    grid-column: 2;
    grid-row: 1;
}

/* ===== Article Detail Card ===== */
.fda-article-detail {
    background: #fff;
    border-radius: 8px;
    padding: 40px 48px;
}

/* Breadcrumb */
.fda-breadcrumb {
    font-size: 20px;
    color: #999999;
    margin-bottom: 44px;
}

.fda-breadcrumb a {
    color: #999;
    transition: color 0.2s;
}

.fda-breadcrumb a:hover {
    color: #DD0000;
}

.fda-breadcrumb .separator {
    margin: 0 8px;
    color: #ccc;
}

.fda-breadcrumb-label {
    color: #666;
}

.fda-breadcrumb-current {
    color: #DD0000;
}

/* Article Title */
.fda-title {
    font-size: 30px;
    font-weight: bold;
    color: #333333;
    line-height: 1.4;
    margin-bottom: 24px;
}

/* Article Meta */
.fda-meta {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #818181;
    margin-bottom: 30px;
}

.fda-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fda-meta-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

/* Article Content Body */
.fda-content {
    font-size: 16px;
    color: #333;
    line-height: 1.9;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.fda-content p {
    margin-bottom: 16px;
}

.fda-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 12px 0;
}

.fda-content h2,
.fda-content h3,
.fda-content h4 {
    margin-top: 28px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #222;
}

.fda-content h2 {
    font-size: 22px;
}

.fda-content h3 {
    font-size: 18px;
}

.fda-content blockquote {
    margin: 16px 0;
    padding: 12px 20px;
    background: #f8f8f8;
    border-left: 4px solid #DD0000;
    color: #555;
}

.fda-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.fda-content table th,
.fda-content table td {
    border: 1px solid #e0e0e0;
    padding: 10px 14px;
    text-align: left;
}

.fda-content table th {
    background: #f5f5f5;
    font-weight: 600;
}

/* ===== Article Tags ===== */
.fda-tags {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fda-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fda-tags-label {
    font-size: 16px;
    color: #666666;
    flex-shrink: 0;
}

.fda-tag {
    display: inline-block;
    padding: 14px 12px;
    background: #F3F6F7;
    border-radius: 4px;
    font-size: 18px;
    color: #666;
    transition: all 0.2s;
}

.fda-tag:hover {
    background: #DD0000;
    color: #fff;
}

.fda-tags-empty {
    font-size: 13px;
    color: #bbb;
}

/* ===== Next Article Navigation ===== */
.fda-prev-next {
    margin-top: 43px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fda-nav-link {
    font-size: 16px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.fda-nav-link:hover {
    color: #DD0000;
}

.fda-nav-label {
    color: #666666;
}

.fda-nav-end {
    font-size: 14px;
    color: #bbb;
}

/* ===== Sidebar ===== */
.tal-sidebar {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

/* Sidebar Card */
.tal-sidebar-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px 0;
}

.tal-sidebar-card:nth-child(4) {
    padding: 20px 20px 0px 0px;
}

.tal-sidebar-card:nth-child(5) {
    padding: 0 20px 20px 0px;
}

.tal-sidebar-title {
    font-size: 20px;
    font-weight: 500;
    color: #333;
    margin-bottom: 36px;
    padding-left: 14px;
    border-left: 6px solid #DC0000;
}

/* Category Tags */
.tal-cat-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tal-cat-tag {
    display: inline-block;
    padding: 8px 20px;
    background: #F3F6F7;
    border-radius: 4px;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.tal-cat-tag:hover,
.tal-cat-tag.active {
    background: #DC0000;
    border-color: #DC0000;
    color: #fff;
}

/* Keyword Tags */
.tal-keyword-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    max-height: 280px;
    overflow-y: auto;
}

.tal-keyword-tag {
    display: inline-block;
    padding: 6px 16px;
    background: #F3F6F7;
    border-radius: 4px;
    font-size: 18px;
    color: #666666;
    transition: all 0.2s;
}

.tal-keyword-tag:hover,
.tal-keyword-tag.active {
    border-color: #DC0000;
    color: #DC0000;
}

/* Keyword tags scrollbar */
.tal-keyword-tags::-webkit-scrollbar {
    width: 7px;
    background: #EEEEEE;
}

.tal-keyword-tags::-webkit-scrollbar-thumb {
    background: #DD0000;
}

/* Activity Banner */
.tal-activity-banner {
    overflow: hidden;
    position: relative;
}

.tal-activity-slide {
    display: none;
}

.tal-activity-slide.active {
    display: block;
    animation: talFadeIn 0.6s ease;
}

@keyframes talFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tal-activity-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.tal-activity-dots {
    position: absolute;
    bottom: 10px;
    left: 12px;
    display: flex;
    gap: 3px;
    z-index: 2;
}

.tal-activity-dot {
    width: 24px;
    height: 2px;
    background: #FEFEFE;
    border-radius: 1px;
    transition: background 0.3s;
}

.tal-activity-dot.active {
    background: #DD0000;
}

/* Hot Articles */
.tal-hot-list {
    display: flex;
    flex-direction: column;
}

.tal-hot-item {
    display: flex;
    gap: 14px;
    padding: 12px 12px 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.tal-hot-item:last-child{
    border-bottom: none;
}

.tal-hot-thumb {
    width: 145px;
    height: 81px;
    overflow: hidden;
    flex-shrink: 0;
    display: block;
}

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

.tal-hot-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tal-hot-title {
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
    font-weight: bold;
}

.tal-hot-item:hover .tal-hot-title {
    color: #DC0000;
}

.tal-hot-item:hover {
    background: #FFFFFF;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.tal-hot-date {
    font-size: 14px;
    color: #666666;
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {

    /* Banner */
    .tal-banner {
        min-height: auto;
        padding: 20vw 0 6vw;
    }

    .tal-banner-title {
        font-size: 6vw;
    }

    .tal-banner-subtitle {
        font-size: 3.5vw;
    }

    /* Content Area */
    .tal-content {
        padding: 4vw 0 8vw;
    }

    /* Layout */
    .fda-layout {
        display: flex;
        flex-direction: column;
        gap: 4vw;
    }

    .fda-layout .tal-sidebar {
        order: 1;
        gap: 4vw;
    }

    .fda-article-detail {
        padding: 5vw 4vw;
        border-radius: 2vw;
    }

    .fda-breadcrumb {
        font-size: 3vw;
        margin-bottom: 4vw;
        padding-bottom: 3vw;
    }

    .fda-title {
        font-size: 5vw;
        margin-bottom: 3vw;
    }

    .fda-meta {
        gap: 4vw;
        font-size: 3vw;
        padding-bottom: 3vw;
        margin-bottom: 4vw;
    }

    .fda-meta-icon {
        width: 3.5vw;
        height: 3.5vw;
    }

    .fda-content {
        font-size: 3.8vw;
        line-height: 1.8;
    }

    .fda-content h2 {
        font-size: 4.5vw;
    }

    .fda-content h3 {
        font-size: 4vw;
    }

    .fda-tags {
        margin-top: 5vw;
        padding-top: 3vw;
        gap: 2vw;
    }

    .fda-tag {
        padding: 1vw 3vw;
        font-size: 3vw;
    }

    .fda-tags-empty {
        font-size: 3vw;
    }

    .fda-prev-next {
        margin-top: 4vw;
        padding-top: 3vw;
        gap: 2.5vw;
    }

    .fda-nav-link {
        font-size: 3.2vw;
    }

    .fda-nav-end {
        font-size: 3.2vw;
    }

    /* Sidebar */
    .tal-sidebar-card {
        padding: 4vw 4vw 4vw 0;
        border-radius: 2vw;
    }

    .tal-sidebar-title {
        font-size: 4.2vw;
        margin-bottom: 3vw;
        padding-left: 3vw;
        border-left-width: 1vw;
    }

    /* Category Tags */
    .tal-cat-tags {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 2.5vw;
        padding-bottom: 1vw;
    }

    .tal-cat-tags::-webkit-scrollbar {
        display: none;
    }

    .tal-cat-tag {
        padding: 2vw 4vw;
        font-size: 3.2vw;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Keyword Tags */
    .tal-keyword-tags {
        max-height: 30vw;
        gap: 2vw;
    }

    .tal-keyword-tag {
        padding: 1.5vw 3vw;
        font-size: 3vw;
    }

    .tal-keyword-tags::-webkit-scrollbar {
        width: 4px;
    }

    /* Activity Banner */
    .tal-activity-banner {
        border-radius: 2vw;
    }

    /* Hot Articles */
    .tal-hot-item:nth-child(n+5) {
        display: none;
    }

    .tal-hot-item {
        padding: 2.5vw 0;
        gap: 3vw;
    }

    .tal-hot-thumb {
        width: 24vw;
        height: 16vw;
        border-radius: 1.5vw;
    }

    .tal-hot-title {
        font-size: 3.4vw;
    }

    .tal-hot-date {
        font-size: 2.8vw;
    }
}
