/* 文章详情页样式：文章内容、侧边栏热门、trending板块 */

.netr-article-wrap {
    margin-top: 20px;
}

.netr-article-h1 {
    font-family: var(--netr-font-heuppercaseading);
    font-size: 32px;
    font-weight: 700;
    color: var(--netr-text-main);
    line-height: 1.25;
    margin-bottom: 14px;
}

.netr-article-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--netr-border);
    flex-wrap: wrap;
}

.netr-article-meta__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--netr-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    flex-shrink: 0;
}

.netr-article-meta__label {
    font-size: 12px;
    color: var(--netr-text-muted);
}

.netr-article-meta__author {
    font-size: 13px;
    font-weight: 600;
    color: var(--netr-text-main);
}

.netr-article-meta__time {
    font-size: 14px;
    color: var(--netr-text-light);
}

.netr-article-body {
    font-family: var(--netr-font-body);
    font-size: 16px;
    color: var(--netr-text-main);
    line-height: 1.75;
}

.netr-article-body p { margin-bottom: 16px; }

.netr-article-body h2 {
    font-family: var(--netr-font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--netr-text-main);
    margin: 28px 0 12px;
    line-height: 1.3;
}

.netr-article-body h3 {
    font-family: var(--netr-font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--netr-text-main);
    margin: 20px 0 10px;
    line-height: 1.3;
}

.netr-article-body img {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 480px;
    border-radius: 3px;
    margin: 16px 0;
    display: block;
    object-fit: contain;
}

.netr-article-body a {
    color: var(--netr-primary);
    text-decoration: underline;
}

.netr-article-body a:hover {
    color: var(--netr-primary-dark);
    opacity: 1;
}

.netr-article-body ul,
.netr-article-body ol {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 16px;
}

.netr-article-body ol { list-style: decimal; }
.netr-article-body li { margin-bottom: 6px; }

.netr-article-source {
    font-size: 14px;
    color: var(--netr-text-muted);
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--netr-border);
}

.netr-article-source a {
    color: var(--netr-primary);
    text-decoration: underline;
}

.netr-article-source a:hover {
    color: var(--netr-primary-dark);
    opacity: 1;
}

.netr-faq-section {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--netr-border);
}

.netr-faq-title {
    font-family: var(--netr-font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--netr-text-main);
    margin-bottom: 16px;
}

.netr-faq-item {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--netr-border);
}

.netr-faq-item:last-child { border-bottom: none; }

.netr-faq-question {
    font-size: 15px;
    font-weight: 700;
    color: var(--netr-text-main);
    margin-bottom: 6px;
    line-height: 1.4;
}

.netr-faq-answer {
    font-size: 14px;
    color: var(--netr-text-muted);
    line-height: 1.6;
}

.netr-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.netr-tab-widget {
    background: var(--netr-bg-light);
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid var(--netr-border);
}

.netr-tab-header {
    display: flex;
    border-bottom: 2px solid var(--netr-border);
}

.netr-tab-btn {
    flex: 1;
    padding: 10px 14px;
    font-family: var(--netr-font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    /*text-transform: uppercase;*/
    text-align: left;
    background: transparent;
    color: var(--netr-text-muted);
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.netr-tab-btn.active {
    color: var(--netr-primary);
    border-bottom-color: var(--netr-primary);
    background: transparent;
}

.netr-tab-btn:hover {
    color: var(--netr-primary-dark);
    border-bottom-color: var(--netr-primary-dark);
    background: transparent;
}

.netr-tab-content {
    padding: 14px;
}

.netr-tab-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--netr-border);
}

.netr-tab-item:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.netr-tab-item__img {
    flex-shrink: 0;
    width: 64px;
    height: 48px;
    overflow: hidden;
    border-radius: 2px;
}

.netr-tab-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.netr-tab-item__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--netr-text-main);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

.netr-tab-item__title:hover {
    color: var(--netr-primary);
    opacity: 1;
    text-decoration: none;
}

.netr-just-in-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--netr-border);
}

.netr-just-in-item:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.netr-just-in-item__img {
    flex-shrink: 0;
    width: 64px;
    height: 48px;
    overflow: hidden;
    border-radius: 2px;
}

.netr-just-in-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.netr-just-in-item__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--netr-text-main);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

.netr-just-in-item__title:hover {
    color: var(--netr-primary);
    opacity: 1;
    text-decoration: none;
}

.netr-related-section {
    margin-top: 36px;
}

.netr-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 14px;
}

.netr-related-card {
    display: flex;
    flex-direction: column;
}

.netr-related-card__img-wrap {
    overflow: hidden;
    border-radius: 2px;
    aspect-ratio: 16 / 9;
}

.netr-related-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.netr-related-card__img-wrap:hover .netr-related-card__img {
    transform: scale(1.04);
}

.netr-related-card__body {
    padding: 7px 0 0;
}

.netr-related-card__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--netr-text-main);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.netr-related-card__title a {
    color: inherit;
    text-decoration: none;
}

.netr-related-card__title a:hover {
    color: var(--netr-primary);
    opacity: 1;
    text-decoration: none;
}

@media (max-width: 768px) {
    .netr-article-h1 { font-size: 24px; }
    .netr-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .netr-article-h1 { font-size: 20px; }
    .netr-related-grid { grid-template-columns: 1fr 1fr; }
}
