/* 国力化工 - 新闻详情页专属样式 */
/* 从 template/cms/default/news.html 提取 */

.sidebar { min-width: 280px; }
.sidebar-block { background: rgba(26, 26, 46, 0.8); border-radius: 16px; padding: 25px; margin-bottom: 25px; box-shadow: 0 5px 25px rgba(0,0,0,.3); }
.sidebar-title { font-size: 18px; font-weight: 600; color: var(--text-dark); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--primary); display: flex; align-items: center; gap: 10px; }
.sidebar-title i { color: var(--primary); }
.sidebar-list { list-style: none; }
.sidebar-list li { margin-bottom: 10px; }
.sidebar-list li a { display: flex; align-items: center; gap: 10px; padding: 12px 15px; color: var(--text-light); font-size: 14px; border-radius: 8px; transition: all 0.3s; }
.sidebar-list li a:hover, .sidebar-list li a.active { background: var(--bg-light); color: var(--primary); }
.sidebar-list li a i { color: var(--primary); width: 18px; }

.sidebar-widget.mt-4 { background: rgba(26, 26, 46, 0.8); border-radius: 16px; padding: 25px; box-shadow: 0 5px 25px rgba(0,0,0,.3); }
.sidebar-widget.mt-4 .sidebar-title { background: transparent; border-bottom: 2px solid #ff6600; margin-bottom: 15px; }
.sidebar-widget.mt-4 .sidebar-list li a { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar-widget.mt-4 .sidebar-list li:last-child a { border-bottom: none; }

.article-detail { background: rgba(26, 26, 46, 0.8); border-radius: 16px; padding: 30px; box-shadow: 0 5px 25px rgba(0,0,0,.3); margin-bottom: 30px; }
.article-title { font-size: 28px; color: var(--text-dark); margin-bottom: 20px; line-height: 1.4; font-weight: bold; }
.article-meta { display: flex; flex-wrap: wrap; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 25px; font-size: 14px; color: var(--text-light); }
.article-meta span { display: flex; align-items: center; gap: 5px; }
.article-meta i { color: var(--primary); }
.article-cover { margin-bottom: 25px; border-radius: 12px; overflow: hidden; background: var(--bg-light); }
.article-cover img { width: 100%; height: auto; max-height: 500px; object-fit: cover; }
.article-body { font-size: 16px; line-height: 1.9; color: var(--text-dark); }
.article-body h2 { font-size: 20px; color: var(--text-dark); margin: 30px 0 15px; padding-bottom: 10px; border-bottom: 2px solid var(--bg-light); }
.article-body h3 { font-size: 18px; color: var(--text-dark); margin: 25px 0 12px; }
.article-body p { margin-bottom: 18px; }
.article-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 15px 0; }
.article-body ul, .article-body ol { margin: 15px 0; padding-left: 30px; }
.article-body li { margin-bottom: 10px; }
.article-body blockquote { background: var(--bg-light); border-left: 4px solid var(--primary); padding: 15px 20px; margin: 20px 0; border-radius: 0 8px 8px 0; font-style: italic; color: var(--text-light); }

.article-tags { padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 25px 0; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.article-tags i { color: var(--primary); }
.article-tags .tag { display: inline-block; padding: 6px 14px; background: var(--bg-light); border-radius: 20px; font-size: 13px; color: var(--text-light); transition: all .3s; }
.article-tags .tag:hover { background: var(--primary); color: #fff; }

.article-share { padding: 20px 0; display: flex; align-items: center; gap: 15px; border-bottom: 1px solid var(--border); }
.article-share span { color: var(--text-light); font-size: 14px; }
.share-btn { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; transition: transform .3s; }
.share-btn:hover { transform: scale(1.1); color: #fff; }
.share-btn.weixin { background: #07c160; }
.share-btn.weibo { background: #e6162d; }
.share-btn.qq { background: #1296db; }

.article-nav { display: flex; justify-content: space-between; padding: 20px 0; margin-top: 10px; }
.article-nav a { display: flex; align-items: center; gap: 10px; color: var(--text-dark); font-size: 14px; max-width: 45%; transition: color .3s; padding: 12px 18px; background: var(--bg-light); border-radius: 8px; }
.article-nav a:hover { color: var(--primary); background: rgba(59, 130, 246, 0.1); }
.article-nav .next-article { justify-content: flex-end; }

.related-articles.mt-5 { margin-top: 30px; }
.related-title { font-size: 18px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--primary); display: flex; align-items: center; gap: 8px; color: var(--text-dark); }
.related-title i { color: var(--primary); }
.related-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-item { background: rgba(26, 26, 46, 0.8); border-radius: 16px; overflow: hidden; box-shadow: 0 5px 25px rgba(0,0,0,.3); transition: all .3s; }
.related-item:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.related-img { height: 120px; overflow: hidden; background: var(--bg-light); }
.related-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.related-item:hover .related-img img { transform: scale(1.1); }
.related-info { padding: 15px; }
.related-info h4 { font-size: 15px; color: var(--text-dark); margin-bottom: 8px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-info h4 a { color: var(--text-dark); transition: color .3s; }
.related-info h4 a:hover { color: var(--primary); }
.related-info span { font-size: 13px; color: var(--text-gray); }

@media(max-width:991px){ .content-wrapper{grid-template-columns:1fr;} .sidebar{margin-bottom:30px;} .related-list{grid-template-columns:repeat(2,1fr);} }
@media(max-width:767px){ .article-title{font-size:20px;} .article-body{font-size:15px;} .article-nav{flex-direction:column;gap:15px;} .article-nav a{max-width:100%;} .related-list{grid-template-columns:1fr;} }

.article-body * { color: var(--text-dark) !important; background: transparent !important; background-color: transparent !important; }
.article-body a { color: var(--primary) !important; }
.article-body a:hover { text-decoration: underline !important; }
