/* seedz1 news detail — align with 素材 pages/news/show.blade.php */
/* 面包屑样式见 style.css（.site-crumb / .news-detail-crumb） */

.news-detail-layout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}
@media (min-width: 1024px) {
    .news-detail-layout {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        column-gap: 3rem;
    }
}
@media (min-width: 1280px) {
    .news-detail-layout {
        column-gap: 5rem;
    }
}

.news-detail-main {
    min-width: 0;
    width: 100%;
    flex: 1 1 auto;
}
@media (min-width: 1024px) {
    .news-detail-main {
        max-width: 97%;
    }
}

.news-detail-cover {
    margin-top: 1.5rem;
    aspect-ratio: 2 / 1;
    max-height: 280px;
    overflow: hidden;
    border-radius: 0.5rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: #f8fafc;
}
@media (min-width: 640px) {
    .news-detail-cover {
        max-height: 320px;
    }
}
.news-detail-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.news-detail-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.news-detail-share__label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
}
.news-detail-share__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    color: #fff;
    transition: opacity 0.15s ease;
}
.news-detail-share__btn:hover {
    opacity: 0.9;
}
.news-detail-share__btn--linkedin { background: #0a66c2; }
.news-detail-share__btn--x { background: #000; }
.news-detail-share__btn--facebook { background: #1877f2; }
.news-detail-share__copy {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #334155;
    background: #fff;
    cursor: pointer;
    transition: background 0.15s ease;
}
.news-detail-share__copy:hover {
    background: #f8fafc;
}

.news-article-content {
    margin-top: 2rem;
}
.news-article-content img {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 24rem;
    margin: 1.5rem auto;
    border-radius: 0.375rem;
    object-fit: contain;
}
.news-article-content table {
    width: 100%;
    border-collapse: collapse;
}
.news-article-content th,
.news-article-content td {
    border: 1px solid #e2e8f0;
    padding: 0.5rem 0.75rem;
}

.news-detail-aside {
    width: 100%;
    max-width: 270px;
    flex-shrink: 0;
}
@media (min-width: 1024px) {
    .news-detail-aside {
        width: 270px;
        margin-top: 0;
        position: sticky;
        top: 6rem;
    }
}
@media (min-width: 1280px) {
    .news-detail-aside {
        width: 288px;
        max-width: 288px;
    }
}

.news-detail-aside__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #334155;
}
.news-detail-aside__list {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.news-detail-aside__card {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.news-detail-aside__card:hover {
    border-color: rgba(29, 32, 135, 0.3);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
.news-detail-aside__media {
    aspect-ratio: 16 / 9;
    width: 100%;
    overflow: hidden;
    background: #f1f5f9;
}
.news-detail-aside__media img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}
.news-detail-aside__card:hover .news-detail-aside__media img {
    transform: scale(1.05);
}
.news-detail-aside__body {
    padding: 0.75rem;
}
.news-detail-aside__date {
    font-size: 0.75rem;
    color: #94a3b8;
}
.news-detail-aside__card-title {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.35;
    color: #334155;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-detail-aside__card:hover .news-detail-aside__card-title {
    color: #1d2087;
}

.news-detail-cta {
    margin-top: 3rem;
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    color: #fff;
    background: linear-gradient(90deg, #1d2087 0%, #722f8b 100%);
}
.news-detail-cta__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}
.news-detail-cta__desc {
    margin: 0.5rem 0 0;
    color: rgba(255, 255, 255, 0.8);
}
.news-detail-cta__btn {
    display: inline-flex;
    margin-top: 1rem;
    border-radius: 0.5rem;
    background: #fff;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    color: #1d2087;
    text-decoration: none;
    transition: background 0.15s ease;
}
.news-detail-cta__btn:hover {
    background: #f8fafc;
}

.news-detail-back {
    display: inline-block;
    margin-top: 2rem;
    font-size: 0.875rem;
    color: #1d2087;
    text-decoration: none;
}
.news-detail-back:hover {
    text-decoration: underline;
}
