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

@keyframes bannerRipple {
    0%   { transform: scale(0.05); opacity: 0.7; }
    60%  { opacity: 0.25; }
    100% { transform: scale(1); opacity: 0; }
}

@keyframes radarSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes glowBreath {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.45; transform: scale(1.2); }
}

@keyframes staticRingPulse {
    0%, 100% { opacity: 0.08; }
    50%      { opacity: 0.18; }
}

.tal-banner .banner-ripple {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    pointer-events: none;
}

.tal-banner .banner-ripple::before,
.tal-banner .banner-ripple::after {
    content: '';
    position: absolute;
}

.tal-banner .banner-ripple::before {
    width: 2400px;
    height: 1px;
    top: 0;
    left: -1200px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.07) 15%, rgba(255,255,255,0.14) 50%, rgba(255,255,255,0.07) 85%, transparent 100%);
}

.tal-banner .banner-ripple::after {
    width: 1px;
    height: 900px;
    top: -450px;
    left: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.07) 15%, rgba(255,255,255,0.14) 50%, rgba(255,255,255,0.07) 85%, transparent 100%);
}

.tal-banner .radar-static-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    will-change: opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    animation: staticRingPulse 8s ease-in-out infinite;
}

.tal-banner .radar-static-ring:nth-child(1) { width: 260px; height: 260px; top: -130px; left: -130px; animation-delay: 0s; }
.tal-banner .radar-static-ring:nth-child(2) { width: 520px; height: 520px; top: -260px; left: -260px; animation-delay: -2.5s; }
.tal-banner .radar-static-ring:nth-child(3) { width: 800px; height: 800px; top: -400px; left: -400px; animation-delay: -5s; }

.tal-banner .radar-sweep {
    position: absolute;
    width: 800px;
    height: 800px;
    top: -400px;
    left: -400px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 270deg,
        rgba(255, 255, 255, 0.03) 300deg,
        rgba(255, 240, 220, 0.10) 338deg,
        rgba(255, 255, 255, 0.20) 358deg,
        transparent 360deg
    );
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    animation: radarSpin 8s linear infinite;
}

.tal-banner .ripple-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    top: -100px;
    left: -100px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(255, 255, 255, 0.28) 0%,
        rgba(255, 230, 200, 0.14) 28%,
        rgba(255, 210, 170, 0.05) 52%,
        transparent 72%
    );
    will-change: transform, opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    animation: glowBreath 4s ease-in-out infinite;
}

.tal-banner .ripple-ring {
    position: absolute;
    width: 1000px;
    height: 1000px;
    top: -500px;
    left: -500px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transform: scale(0.05);
    will-change: transform, opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    animation: bannerRipple 4.2s infinite ease-out;
}

.tal-banner .ripple-ring:nth-child(6)  { animation-delay: 0s; }
.tal-banner .ripple-ring:nth-child(7)  { animation-delay: -0.7s; }
.tal-banner .ripple-ring:nth-child(8)  { animation-delay: -1.4s; }
.tal-banner .ripple-ring:nth-child(9)  { animation-delay: -2.1s; }
.tal-banner .ripple-ring:nth-child(10) { animation-delay: -2.8s; }
.tal-banner .ripple-ring:nth-child(11) { animation-delay: -3.5s; }

/* ===== Banner ===== */
.tal-banner {
    background:
        linear-gradient(135deg, rgba(26,26,26,.9), rgba(255,116,1,.62)),
        url('../img/fude/recommend/background/bg-banner.webp') center / cover no-repeat;
    min-height: 327px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0 40px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.tal-banner > .container {
    position: relative;
    z-index: 2;
}

.tal-banner-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.tal-banner-actions .tal-btn-white,
.tal-banner-actions .tal-btn-outline-white {
    padding: 14px 36px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
}

.tal-banner-actions .tal-btn-white {
    background: var(--orange);
    color: #fff;
    border: 2px solid var(--orange);
}

.tal-banner-actions .tal-btn-white:hover {
    background: var(--orange-soft);
    color: #fff;
    border-color: var(--orange-soft);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 116, 1, 0.35);
}

.tal-banner-actions .tal-btn-outline-white {
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
}

.tal-banner-actions .tal-btn-outline-white:hover {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
    transform: translateY(-3px);
}

.tal-banner-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

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

/* ===== 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;
    min-width: 0;
}

.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;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

/* Breadcrumb */
.fda-breadcrumb {
    font-size: 16px;
    color: #999999;
    margin-bottom: 44px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

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

.fda-breadcrumb a:hover {
    color: var(--orange);
}

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

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

.fda-breadcrumb-current {
    color: var(--orange);
}

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

/* 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;
    min-width: 0;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.fda-content p {
    margin-bottom: 16px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

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

.fda-content a,
.fda-content span,
.fda-content strong,
.fda-content em,
.fda-content li,
.fda-content td,
.fda-content th {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.fda-content pre,
.fda-content code {
    max-width: 100%;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.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 var(--orange);
    color: #555;
}

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

.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: 8px 12px;
    background: #F3F6F7;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
    transition: all 0.2s;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.fda-tag:hover {
    background: var(--orange);
    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;
    overflow-wrap: anywhere;
    word-break: break-word;
    transition: color 0.2s;
}

.fda-nav-link:hover {
    color: var(--orange);
}

.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 var(--orange);
    overflow-wrap: anywhere;
    word-break: break-word;
}

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

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

.tal-cat-tag:hover,
.tal-cat-tag.active {
    background: var(--orange);
    border-color: var(--orange);
    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 12px;
    background: #F3F6F7;
    border-radius: 4px;
    font-size: 14px;
    color: #666666;
    transition: all 0.2s;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tal-keyword-tag:hover,
.tal-keyword-tag.active {
    border-color: var(--orange);
    color: var(--orange);
}

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

.tal-keyword-tags::-webkit-scrollbar-thumb {
    background: var(--orange);
}

/* 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: var(--orange);
}

/* 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;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tal-hot-item:hover .tal-hot-title {
    color: var(--orange);
}

.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) {
    .tal-banner .radar-sweep {
        display: none;
    }

    .tal-banner .radar-static-ring:nth-child(1) { width: 140px; height: 140px; top: -70px; left: -70px; }
    .tal-banner .radar-static-ring:nth-child(2) { width: 300px; height: 300px; top: -150px; left: -150px; }
    .tal-banner .radar-static-ring:nth-child(3) { width: 480px; height: 480px; top: -240px; left: -240px; }

    .tal-banner .banner-ripple::before { width: 600px; left: -300px; }
    .tal-banner .banner-ripple::after { height: 400px; top: -200px; }

    .tal-banner .ripple-ring {
        width: 600px;
        height: 600px;
        top: -300px;
        left: -300px;
    }

    .tal-banner .ripple-ring:nth-child(9),
    .tal-banner .ripple-ring:nth-child(10),
    .tal-banner .ripple-ring:nth-child(11) {
        display: none;
    }

    .tal-banner .ripple-glow {
        width: 100px;
        height: 100px;
        top: -50px;
        left: -50px;
    }

    /* Banner */
    .tal-banner {
        min-height: auto;
        padding: clamp(72px, 18vw, 120px) 0 clamp(28px, 7vw, 48px);
    }

    .tal-banner-title {
        font-size: clamp(24px, 6vw, 34px);
        line-height: 1.22;
    }

    .tal-banner-subtitle {
        font-size: clamp(14px, 3.5vw, 18px);
    }

    .tal-banner-actions {
        gap: 3vw;
        margin-top: 5vw;
    }

    .tal-banner-actions .tal-btn-white,
    .tal-banner-actions .tal-btn-outline-white {
        padding: 10px 22px;
        font-size: clamp(13px, 3.33vw, 16px);
        border-radius: 6px;
    }

    /* 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: 20px 16px;
        border-radius: 12px;
    }

    .fda-breadcrumb {
        font-size: clamp(12px, 2.59vw, 14px);
        margin-bottom: 18px;
        padding-bottom: 12px;
    }

    .fda-title {
        font-size: clamp(22px, 5vw, 30px);
        line-height: 1.32;
        margin-bottom: 14px;
    }

    .fda-meta {
        gap: 4vw;
        font-size: clamp(12px, 2.59vw, 14px);
        padding-bottom: 3vw;
        margin-bottom: 4vw;
        flex-wrap: wrap;
    }

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

    .fda-content {
        font-size: clamp(15px, 3.8vw, 17px);
        line-height: 1.75;
    }

    .fda-content h2 {
        font-size: clamp(18px, 4.5vw, 22px);
    }

    .fda-content h3 {
        font-size: clamp(16px, 4vw, 20px);
    }

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

    .fda-tag {
        padding: 6px 10px;
        font-size: clamp(12px, 2.8vw, 14px);
    }

    .fda-tags-empty {
        font-size: clamp(12px, 2.8vw, 14px);
    }

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

    .fda-nav-link {
        font-size: clamp(13px, 3.2vw, 15px);
    }

    .fda-nav-end {
        font-size: clamp(12px, 3vw, 14px);
    }

    /* Sidebar */
    .tal-sidebar-card {
        padding: 18px;
        border-radius: 12px;
    }

    .tal-sidebar-card:nth-child(4),
    .tal-sidebar-card:nth-child(5) {
        padding: 18px;
    }

    .tal-sidebar-title {
        font-size: clamp(18px, 4.2vw, 22px);
        margin-bottom: 3vw;
        padding-left: 12px;
        border-left-width: 4px;
    }

    /* Category Tags */
    .tal-cat-tags {
        flex-wrap: wrap;
        overflow: visible;
        gap: 2.5vw;
    }

    .tal-cat-tag {
        padding: 8px 14px;
        font-size: clamp(13px, 3.2vw, 15px);
        white-space: normal;
        flex-shrink: 1;
    }

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

    .tal-keyword-tag {
        padding: 6px 12px;
        font-size: clamp(12px, 3vw, 14px);
    }

    .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: clamp(13px, 3.4vw, 15px);
    }

    .tal-hot-date {
        font-size: clamp(11px, 2.8vw, 13px);
    }
}
