﻿.detail-news-feature {
    --dn-bg: #F5F5F5;
    --dn-text: var(--text-primary, #1D3C55);
    --dn-text-sub: color-mix(in srgb, var(--text-primary, #1D3C55) 55%, #666);
    --dn-border: var(--border-primary, #D9D9D9);
    --dn-hover-bg: #f0f0f0;
    background: var(--dn-bg);
}

.detail-news-feature .grid.wide {
    max-width: 1100px;
}

.detail-news-container {
    padding: 60px 0;
}

/* Top: breadcrumb + search */
.detail-news-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--dn-border);
}

.detail-news-breakcum {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.detail-news-breakcum-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--dn-text-sub);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    transition: color 0.2s ease;
}

.detail-news-breakcum-item:hover {
    color: var(--dn-text);
}

.detail-news-breakcum-item i {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    font-size: 14px;
}

.detail-news-breakcum-item span {
    display: block;
    white-space: nowrap;
}

.detail-news-breakcum-current {
    color: var(--dn-text);
    font-weight: 600;
    cursor: default;
    pointer-events: none;
}

.detail-news-breakcum-current span {
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.detail-news-breakcum-separator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--dn-text-sub);
    opacity: 0.55;
}

.detail-news-breakcum-separator i {
    width: 14px;
    height: 14px;
    font-size: 12px;
}

.detail-news-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 280px;
    flex-shrink: 0;
}

.detail-news-search-btn,
.detail-news-search-clear {
    position: absolute;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--dn-text-sub);
    cursor: pointer;
    transition: color 0.2s ease;
}

.detail-news-search-btn {
    left: 0;
}

.detail-news-search-clear {
    right: 0;
    display: none;
    align-items: center;
    justify-content: center;
}

.detail-news-search-btn:hover,
.detail-news-search-clear:hover {
    color: var(--dn-text);
}

.detail-news-search-btn i,
.detail-news-search-clear i {
    font-size: 16px;
}

.detail-news-search input {
    width: 100%;
    height: 44px;
    padding: 0 42px;
    border: 1px solid var(--dn-border);
    border-radius: 999px;
    background: var(--dn-bg);
    color: var(--dn-text);
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.detail-news-search input::placeholder {
    color: color-mix(in srgb, var(--dn-text-sub) 65%, transparent);
}

.detail-news-search input:focus {
    border-color: color-mix(in srgb, var(--color-1) 25%, var(--dn-border));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-1) 6%, transparent);
}

/* Bottom: article + sidebar */
.detail-news-bottom {
    padding-top: 36px;
}

.detail-news-wrap {
    display: flex;
    align-items: flex-start;
    gap: 48px;
}

.detail-news-wrap-left {
    flex: 1 1 auto;
    min-width: 0;
}

.detail-news-wrap-right {
    width: 300px;
    flex-shrink: 0;
}

/* Article title & meta */
.detail-news-title {
    margin: 0;
}

.detail-news-title span {
    display: block;
    color: var(--dn-text);
    font-size: 40px;
    font-weight: 600;
    
    letter-spacing: -0.03em;
}

.detail-news-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 18px;
}

.detail-news-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.detail-news-meta-item span {
    color: var(--dn-text-sub);
    font-size: 14px;
    font-weight: 500;
    
}

.detail-news-meta-item:first-child span {
    color: var(--dn-text);
    font-weight: 600;
}

.detail-news-meta-dot {
    font-size: 5px;
    color: var(--dn-text-sub);
    opacity: 0.55;
}

/* Banner */
.detail-news-banner {
    position: relative;
    width: 100%;
    height: 460px;
    margin-top: 28px;
    overflow: hidden;
    border-radius: 16px;
}

.detail-news-banner img {
    object-fit: cover;
}

/* Content */
.p-detail {
    margin-top: 28px;
}

.p-detail .section-detail {
    color: var(--dn-text);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
}

.p-detail .section-detail p {
    margin: 0 0 18px;
}

.p-detail .section-detail p:last-of-type {
    margin-bottom: 0;
}

.p-detail .section-detail p strong {
    font-weight: 600;
}

.p-detail .section-detail h3 {
    margin: 28px 0 14px;
    color: var(--dn-text);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
}

.p-detail .section-detail ul {
    margin: 18px 0 0;
    padding-left: 22px;
}

.p-detail .section-detail ul li {
    margin-bottom: 8px;
    color: var(--dn-text);
    font-size: 16px;
    line-height: 1.65;
}

.p-detail .section-detail ul li:last-child {
    margin-bottom: 0;
}

/* Tags */
.detail-news-tag {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.detail-news-tag-item {
    display: inline-flex;
    align-items: center;
    padding: 8px 17px;
    border: 1px solid var(--dn-border);
    border-radius: 999px;
    background: var(--dn-bg);
    color: var(--dn-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.detail-news-tag-item:hover {
    border-color: color-mix(in srgb, var(--color-1) 20%, var(--dn-border));
    background: var(--color-1);
    color: #fff;
}

/* Footer stats + contact */
.detail-news-foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--dn-border);
}

.detail-news-foot-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
}

.detail-news-foot-stat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.detail-news-foot-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--dn-text-sub);
}

.detail-news-foot-stat-icon i {
    font-size: 18px;
}

.detail-news-foot-stat span {
    color: var(--dn-text-sub);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
}

.detail-news-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    height: 48px;
    padding: 0 24px;
    border: 1px solid var(--dn-border);
    border-radius: 999px;
    background: var(--color-1);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.detail-news-contact span {
    display: block;
    white-space: nowrap;
}

.detail-news-contact:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: #fff;
}

/* Sidebar: social */
.detail-news-social {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--dn-border);
}

.detail-news-social-title {
    margin: 0;
}

.detail-news-social-title span {
    display: block;
    color: var(--dn-text);
    font-size: 18px;
    font-weight: 600;
    
}

.detail-news-social-list {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.detail-news-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--dn-border);
    border-radius: 999px;
    background: var(--dn-bg);
    color: var(--dn-text);
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.detail-news-social-icon i {
    font-size: 16px;
}

.detail-news-social-icon:hover {
    border-color: color-mix(in srgb, var(--color-1) 20%, var(--dn-border));
    background: var(--dn-hover-bg);
    color: var(--dn-text);
}

/* Sidebar: related */
.detail-news-related {
    margin-top: 24px;
}

.detail-news-related-heading {
    margin: 0;
}

.detail-news-related-heading span {
    display: block;
    color: var(--dn-text);
    font-size: 18px;
    font-weight: 600;
    
}

.detail-news-related-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 18px;
}

.detail-news-related-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.detail-news-related-item:hover {
    opacity: 0.82;
}

.detail-news-related-image {
    position: relative;
    width: 94px;
    height: 60px;
    overflow: hidden;
    border-radius: 10px;
    flex-shrink: 0;
}

.detail-news-related-image img {
    object-fit: cover;
}

.detail-news-related-content {
    min-width: 0;
    flex: 1 1 auto;
}

.detail-news-related-title {
    margin: 0;
}

.detail-news-related-title span {
    display: -webkit-box;
    overflow: hidden;
    color: var(--dn-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.detail-news-related-cate {
    margin: 6px 0 0;
}

.detail-news-related-cate span {
    display: block;
    color: var(--dn-text-sub);
    font-size: 12px;
    font-weight: 500;
    
}

/* Responsive */
@media (max-width: 1023px) {
    .detail-news-container {
        padding: 112px 0 48px;
    }

    .detail-news-top {
        gap: 20px;
    }

    .detail-news-search {
        max-width: 240px;
    }

    .detail-news-bottom {
        padding-top: 28px;
    }

    .detail-news-wrap {
        gap: 32px;
    }

    .detail-news-title span {
        font-size: 34px;
    }

    .detail-news-meta {
        margin-top: 16px;
    }

    .detail-news-banner {
        height: 340px;
        margin-top: 24px;
    }

    .p-detail {
        margin-top: 24px;
    }

    .p-detail .section-detail h3 {
        margin-top: 24px;
        font-size: 17px;
    }

    .detail-news-foot {
        flex-wrap: wrap;
        gap: 20px;
        margin-top: 32px;
        padding-top: 20px;
    }

    .detail-news-foot-stats {
        gap: 18px;
    }

    .detail-news-contact {
        min-width: 160px;
        height: 46px;
        padding: 0 20px;
    }

    .detail-news-wrap-right {
        width: 260px;
    }

    .detail-news-social-list {
        flex-wrap: wrap;
    }
}

@media (max-width: 739px) {
    .detail-news-container {
        padding: 96px 0 40px;
    }

    .detail-news-top {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding-bottom: 16px;
    }

    .detail-news-breakcum {
        gap: 6px;
    }

    .detail-news-breakcum-item {
        font-size: 13px;
    }

    .detail-news-breakcum-item span {
        white-space: normal;
    }

    .detail-news-breakcum-current span {
        white-space: nowrap;
        max-width: 160px;
    }

    .detail-news-breakcum-separator i {
        font-size: 10px;
    }

    .detail-news-search {
        max-width: none;
    }

    .detail-news-search input {
        height: 42px;
        font-size: 13px;
    }

    .detail-news-bottom {
        padding-top: 24px;
    }

    .detail-news-wrap {
        flex-direction: column;
        gap: 28px;
    }

    .detail-news-title span {
        font-size: 28px;
        line-height: 1.25;
    }

    .detail-news-meta {
        gap: 8px;
        margin-top: 14px;
    }

    .detail-news-meta-item span {
        font-size: 13px;
    }

    .detail-news-banner {
        height: 220px;
        margin-top: 18px;
        border-radius: 12px;
    }

    .p-detail {
        margin-top: 18px;
    }

    .p-detail .section-detail {
        font-size: 15px;
        line-height: 1.6;
    }

    .p-detail .section-detail p {
        margin-bottom: 16px;
    }

    .p-detail .section-detail h3 {
        margin: 22px 0 12px;
        font-size: 16px;
    }

    .p-detail .section-detail ul {
        padding-left: 18px;
    }

    .p-detail .section-detail ul li {
        font-size: 15px;
    }

    .detail-news-foot {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        margin-top: 24px;
        padding-top: 18px;
    }

    .detail-news-foot-stats {
        justify-content: flex-start;
        gap: 16px;
    }

    .detail-news-foot-stat span {
        font-size: 13px;
    }

    .detail-news-foot-stat-icon i {
        font-size: 16px;
    }

    .detail-news-contact {
        width: 100%;
        min-width: 0;
        height: 46px;
        font-size: 13px;
    }

    .detail-news-wrap-right {
        width: 100%;
    }

    .detail-news-social {
        padding-bottom: 20px;
    }

    .detail-news-social-title span {
        font-size: 17px;
    }

    .detail-news-social-list {
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 14px;
    }

    .detail-news-social-icon {
        width: 38px;
        height: 38px;
    }

    .detail-news-social-icon i {
        font-size: 15px;
    }

    .detail-news-related {
        margin-top: 20px;
    }

    .detail-news-related-heading span {
        font-size: 17px;
    }

    .detail-news-related-list {
        gap: 14px;
        margin-top: 14px;
    }

    .detail-news-related-image {
        width: 68px;
        height: 50px;
        border-radius: 8px;
    }

    .detail-news-related-title span {
        font-size: 13px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .detail-news-related-cate {
        margin-top: 4px;
    }

    .detail-news-related-cate span {
        font-size: 11px;
    }

    .detail-news-tag-item {
        padding: 7px 14px;
        font-size: 13px;
    }
}
