/* --- 文章详情页专属样式 --- */
.container { max-width: 1200px; }
.main-layout { padding: 30px 0 60px; }

/* 双栏布局 */
.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 30px;
    align-items: start;
}
.article-main { min-width: 0; }
.article-sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.content-area {
    padding: 30px 40px 40px;
    background: #fff;
}
.content-area.glass-container { background: #fff; }

.breadcrumb { font-size: 13px; color: #888; margin-bottom: 25px; }
.breadcrumb span { margin: 0 6px; }
.breadcrumb a:hover { color: #00a0e9; }

.article-hero-img {
    width: 100%;
    height: 380px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
    background: #f5f5f5;
}
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; }

.article-header { margin-bottom: 30px; }
.article-tag {
    display: inline-block;
    background: #eaf4ff;
    color: #0056b3;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 15px;
}
.article-main-title {
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 18px;
}
.article-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 14px;
    color: #888;
}
.article-meta img { width: 32px; height: 32px; border-radius: 50%; }

/* 文章标签 chips */
.article-tags-row {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.article-tag-item {
    background: #f5f7fa;
    color: #555;
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 12px;
    line-height: 1.4;
    border: 1px solid #eef0f2;
    transition: all 0.2s ease;
    cursor: pointer;
}
.article-tag-item:hover { background: #eaf4ff; color: #0056b3; border-color: #cce3ff; transform: translateY(-1px); }

.article-body-content { font-size: 16px; color: #333; line-height: 1.8; }
.article-body-content p { margin-bottom: 20px; }
.article-body-content h2, .article-body-content h3 {
    margin: 30px 0 15px;
    color: #1a1a1a;
    font-weight: 600;
}
.article-body-content h2 { font-size: 22px; }
.article-body-content h3 { font-size: 18px; }
.article-body-content img { max-width: 100%; border-radius: 12px; margin: 15px 0; }
.article-body-content blockquote {
    border-left: 4px solid #0056b3;
    padding: 10px 20px;
    background: #f8faff;
    color: #555;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}
.article-body-content a { color: #0056b3; text-decoration: underline; }
.article-body-content ul, .article-body-content ol { padding-left: 25px; margin-bottom: 20px; }
.article-body-content li { margin-bottom: 8px; }

.article-actions {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}
.action-btn {
    padding: 10px 25px;
    background: #f5f5f5;
    border: none;
    border-radius: 30px;
    color: #555;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.action-btn:hover { background: #eaf4ff; color: #0056b3; }
.action-btn.liked { background: #0056b3; color: #fff; }

/* 上一篇 / 下一篇 */
.article-prev-next {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}
.prev-next-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 20px;
    background: #f8faff;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
    min-width: 0;
}
.prev-next-item:hover {
    background: #eaf4ff;
    border-color: #cce3ff;
    transform: translateY(-2px);
}
.prev-next-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
.next-item { text-align: right; }
.prev-next-label {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 4px;
}
.next-item .prev-next-label { justify-content: flex-end; }
.prev-next-title {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 侧边栏卡片 */
.sidebar-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
}
.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-title i { color: #0056b3; }
.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 480px;
    overflow-y: auto;
}
.sidebar-empty {
    color: #999;
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
}

/* 相似产品卡片 */
.sidebar-product {
    display: flex;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}
.sidebar-product:hover { background: #f8faff; }
.sidebar-product img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f5f5f5;
}
.sidebar-product-info { min-width: 0; flex: 1; }
.sidebar-product-name {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    margin-bottom: 4px;
}
.sidebar-product-sub {
    font-size: 12px;
    color: #888;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 4px;
}
.sidebar-product-price {
    font-size: 14px;
    font-weight: 600;
    color: #fa541c;
}

/* 最新资讯卡片 */
.sidebar-article {
    display: flex;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}
.sidebar-article:hover { background: #f8faff; }
.sidebar-article img {
    width: 60px;
    height: 45px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f5f5f5;
}
.sidebar-article-info { min-width: 0; flex: 1; }
.sidebar-article-title {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 4px;
}
.sidebar-article-date { font-size: 11px; color: #999; }

/* 分享弹窗 */
.share-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.share-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}
.share-modal-box {
    position: relative;
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    width: 360px;
    max-width: 92vw;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
}
.share-modal-close {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    border-radius: 4px;
}
.share-modal-close:hover { color: #1a1a1a; background: #f5f5f5; }
.share-channels {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.share-channel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 4px;
    border-radius: 10px;
    text-decoration: none;
    color: #555;
    background: #f8faff;
    transition: 0.2s;
    cursor: pointer;
}
.share-channel:hover {
    background: #eaf4ff;
    color: #0056b3;
    transform: translateY(-2px);
}
.share-channel i { font-size: 26px; }
.share-channel.share-wechat i { color: #07c160; }
.share-channel.share-qq i { color: #12b7f5; }
.share-channel.share-weibo i { color: #e6162d; }
.share-channel.share-copy i { color: #888; }
.share-channel span { font-size: 12px; }
.share-qrcode {
    margin-top: 18px;
    text-align: center;
    padding-top: 18px;
    border-top: 1px solid #eee;
}
.share-qrcode-tip {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}
.qrcode-box {
    display: inline-block;
    padding: 8px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
}

@media (max-width: 1024px) {
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { position: static; }
}

@media (max-width: 768px) {
    .content-area { padding: 20px; }
    .article-hero-img { height: 220px; }
    .article-main-title { font-size: 24px; }
    .article-meta { flex-wrap: wrap; gap: 10px; }
    .article-prev-next { grid-template-columns: 1fr; }
    .next-item { text-align: left; }
    .next-item .prev-next-label { justify-content: flex-start; }
    .share-channels { grid-template-columns: repeat(2, 1fr); }
}
