/* 資訊詳情頁：延續 news.css / product-detail.css */

.nwd-page .breadcrumb-container ul li span.breadcrumb-current {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    display: inline-block;
    vertical-align: bottom;
    max-width: min(100%, 520px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .nwd-page .breadcrumb-container ul li span.breadcrumb-current {
        white-space: normal;
        line-height: 1.35;
    }
}

.nwd-article-header {
    padding-top: 36px;
    padding-bottom: 16px;
}

.nwd-breadcrumb {
    margin-bottom: 14px;
}

.nwd-article-header p {
    margin: 0 0 10px;
    font-size: 11px;
    letter-spacing: 0.14em;
    font-weight: 600;
    color: var(--primary-color);
}

.nwd-article-header .nw-item-badge {
    margin-bottom: 12px;
}

.nwd-title {
    margin: 0 0 14px;
    font-size: clamp(24px, 3.2vw, 34px);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.25;
    letter-spacing: 0.02em;
}

.nwd-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 16px;
}

.nwd-date {
    font-weight: 600;
    color: #475569;
}

.nwd-meta-dot {
    opacity: 0.55;
}

.nwd-tags.news-tags {
    margin-bottom: 0;
}

.nwd-cover {
    margin: 0 auto 28px;
}

.nwd-cover img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    border: 1px solid #e7edf3;
    box-shadow: 0 8px 28px rgba(13, 32, 54, 0.08);
}

.nwd-prose {
    padding-bottom: 16px;
}

.nwd-prose>p:first-child {
    font-size: 19px;
    line-height: 1.75;
    color: #1e293b;
    margin: 0 0 20px;
    padding: 20px 0;
    overflow: hidden;

}

.nwd-prose h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 32px 0 14px;
    line-height: 1.35;
}

.nwd-prose h2:first-of-type {
    margin-top: 0;
}

.nwd-prose p {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.8;
    color: #334155;
}

.nwd-prose ul {
    margin: 12px 0 24px;
    padding-left: 20px;
    color: #334155;
}

.nwd-prose ul li {
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.7;
    padding-left: 5px;
    position: relative;
}
.nwd-prose ul li::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary-color);
}

.nwd-prose ul li:last-child {
    margin-bottom: 0;
}

.detail-section-title{
    margin-bottom: 10px;
}

.nwd-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 20px;
    padding-top: 8px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e8eef4;
}

.nwd-related-section {
    padding: 44px 0 24px;
}

.nwd-related-note {
    margin-top: -8px;
}

.nwd-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 20px;
    border: 1px solid #e7edf3;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.nwd-related-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 0;
    text-decoration: none;
    color: inherit;
    border-right: 1px solid #e7edf3;
    border-bottom: none;
    transition: background 0.2s ease;
}

.nwd-related-card:last-child {
    border-right: none;
}

.nwd-related-card:hover {
    background: rgba(1, 36, 138, 0.04);
}

.nwd-related-thumb {
    overflow: hidden;
    background: #f1f5f9;
}

.nwd-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nwd-related-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}

.nwd-related-body .nw-item-badge {
    margin-bottom: 0;
}

.nwd-related-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nwd-related-date {
    margin-top: auto;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.nwd-page .ip-cta-section.container {
    padding-bottom: 80px;
}

.nw-item-badge{
    display: inline-block;
}

.news-tags span{
    font-size: 13px;
}

@media (max-width: 992px) {
    .nwd-related-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        border: none;
    }

    .nwd-related-card {
        grid-template-columns: 100px minmax(0, 1fr);
        border-right: none;
        border: 1px solid #e7edf3;
        border-radius: 8px;
        overflow: hidden;
    }

    .breadcrumb-container ul{
        flex-wrap: wrap;
        justify-content: flex-start;
        row-gap: 4px;
    }
}

@media (max-width: 480px) {
    .nwd-related-card {
        grid-template-columns: 1fr;
    }

    .nwd-related-thumb {
        max-height: 200px;
    }
}

@media (max-width: 767px) {
    .nwd-article-header {
        padding-top: 24px;
        padding-bottom: 12px;
    }

    .nwd-title {
        font-size: clamp(22px, 6vw, 28px);
    }

    .nwd-meta {
        font-size: 13px;
    }

    .nwd-cover {
        margin-bottom: 20px;
    }

    .nwd-prose > p:first-child {
        padding: 0px 0px;
        font-size: 16px;
        line-height: 1.7;
        margin-bottom: 20px;
    }

    .nwd-prose p:last-child{
        margin-bottom: 0;
    }

    .nwd-prose h2 {
        font-size: 19px;
        margin: 20px 0 20px;
    }

    .nwd-prose p,
    .nwd-prose ul li {
        font-size: 15px;
    }

    .nwd-actions {
        gap: 12px;
        padding-bottom: 28px;
    }

    .nwd-related-section {
        padding: 20px 0 20px;
    }

    .nwd-page .ip-cta-section.container {
        padding-bottom: 40px;
        padding-top: 20px;
    }
}
