/* ============================================================
   夏河县公共文化云 · PC 仿制主题（仿山东公共文化云 sdpcc.com）
   主色: #c3272b (夏河红)  背景: #f5f7fa  正文: #303133
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif; background: #f5f7fa; color: #303133; font-size: 14px; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
.container { width: 1200px; margin: 0 auto; }

/* ── 顶部条 ── */
.sd-topbar { background: #c3272b; color: #fff; font-size: 12px; }
.sd-topbar .container { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.sd-topbar a { color: #fff; margin-left: 14px; }
.sd-topbar a:hover { opacity: .85; }

/* ── 主导航 ── */
.sd-mainnav { background: #fff; border-bottom: 1px solid #e4e7ed; position: sticky; top: 0; z-index: 100; }
.sd-mainnav .container { display: flex; align-items: center; height: 64px; }
.sd-logo { font-size: 22px; font-weight: 700; color: #c3272b; margin-right: 44px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.sd-logo img { width: 38px; height: 38px; border-radius: 4px; }
.sd-nav { display: flex; gap: 24px; font-size: 15px; }
.sd-nav a { color: #303133; position: relative; padding: 21px 0; }
.sd-nav a:hover, .sd-nav a.active { color: #c3272b; }
.sd-nav a.active::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: #c3272b; }
.sd-nav-right { margin-left: auto; display: flex; gap: 14px; font-size: 13px; color: #606266; align-items: center; }
.sd-nav-right a:hover { color: #c3272b; }

/* ── 轮播 ── */
.sd-banner { margin-top: 12px; }
.sd-banner .container { display: flex; gap: 12px; }
.sd-banner-main { width: 880px; height: 380px; border-radius: 6px; overflow: hidden; position: relative; background: #ddd; }
.sd-banner-main img, .sd-banner-side img { width: 100%; height: 100%; object-fit: cover; }
.sd-banner-side { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.sd-banner-side .side-item { flex: 1; border-radius: 6px; overflow: hidden; position: relative; background: #ddd; }
.sd-banner-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 8px; background: linear-gradient(transparent, rgba(0,0,0,.6)); color: #fff; font-size: 14px; }

/* ── 通用区块 ── */
.sd-section { background: #fff; border-radius: 6px; margin-top: 12px; padding: 18px 20px; }
.sd-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sd-section-title { font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.sd-section-title::before { content: ""; width: 4px; height: 18px; background: #c3272b; border-radius: 2px; }
.sd-section-more { font-size: 13px; color: #909399; }
.sd-section-more:hover { color: #c3272b; }

/* ── 头条 ── */
.sd-toutiao { display: flex; gap: 24px; }
.sd-toutiao-left { width: 400px; }
.sd-toutiao-left .big-item { border-radius: 6px; overflow: hidden; position: relative; display: block; }
.sd-toutiao-left .big-item img { width: 100%; height: 230px; object-fit: cover; }
.sd-toutiao-left .big-item .t { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 8px; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; font-size: 15px; }
.sd-toutiao-right { flex: 1; }
.sd-tt-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed #ebeef5; font-size: 14px; }
.sd-tt-list li:last-child { border-bottom: none; }
.sd-tt-list .dot { width: 5px; height: 5px; border-radius: 50%; background: #c3272b; flex-shrink: 0; }
.sd-tt-list .tt-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-tt-list .tt-title:hover { color: #c3272b; }
.sd-tt-list .tt-src { color: #909399; font-size: 12px; flex-shrink: 0; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-tt-list .tt-time { color: #c0c4cc; font-size: 12px; flex-shrink: 0; }

/* ── 资讯流 ── */
.sd-news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.sd-news-item { display: flex; gap: 12px; padding: 10px; border-radius: 6px; }
.sd-news-item:hover { background: #f5f7fa; }
.sd-news-item .thumb { width: 150px; height: 100px; border-radius: 4px; overflow: hidden; flex-shrink: 0; background: #eee; }
.sd-news-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.sd-news-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.sd-news-info h4 { font-size: 15px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sd-news-info h4:hover { color: #c3272b; }
.sd-news-desc { font-size: 12px; color: #909399; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.sd-news-meta { display: flex; gap: 14px; font-size: 12px; color: #c0c4cc; }
.sd-news-meta .src { color: #909399; }

/* ── 卡片（视频/课程） ── */
.sd-card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sd-video-card .vc-img { width: 100%; aspect-ratio: 16/10; border-radius: 6px; overflow: hidden; position: relative; background: #eee; }
.sd-video-card .vc-img img { width: 100%; height: 100%; object-fit: cover; }
.sd-video-card .vc-img .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.25); color: #fff; font-size: 30px; }
.sd-video-card h4 { font-size: 13px; margin-top: 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sd-video-card h4:hover { color: #c3272b; }
.sd-video-card .vc-meta { display: flex; justify-content: space-between; font-size: 12px; color: #c0c4cc; margin-top: 6px; }
.sd-video-card .vc-meta .src { color: #909399; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── 云馆 ── */
.sd-hall-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sd-hall-item { border: 1px solid #ebeef5; border-radius: 6px; padding: 16px 14px; text-align: center; }
.sd-hall-item:hover { border-color: #c3272b; }
.sd-hall-item .hall-name { font-size: 15px; font-weight: 600; }
.sd-hall-item .hall-desc { font-size: 12px; color: #909399; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 34px; }
.sd-hall-item .hall-views { font-size: 12px; color: #c0c4cc; margin-top: 8px; }

/* ── 列表页 ── */
.sd-list-layout { display: flex; gap: 14px; margin-top: 12px; }
.sd-list-main { flex: 1; background: #fff; border-radius: 6px; padding: 20px; }
.sd-list-side { width: 280px; background: #fff; border-radius: 6px; padding: 18px; align-self: flex-start; }
.sd-crumb { font-size: 13px; color: #909399; padding: 12px 0; border-bottom: 1px solid #ebeef5; margin-bottom: 16px; }
.sd-crumb a:hover { color: #c3272b; }
.sd-list-title { font-size: 20px; font-weight: 600; margin-bottom: 16px; }
.sd-list-ul li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid #f0f2f5; }
.sd-list-ul li:last-child { border-bottom: none; }
.sd-list-ul .idx { width: 24px; height: 24px; border-radius: 4px; background: #f5f7fa; color: #909399; font-size: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sd-list-ul li:nth-child(-n+3) .idx { background: #c3272b; color: #fff; }
.sd-list-ul .l-title { flex: 1; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-list-ul .l-title:hover { color: #c3272b; }
.sd-list-ul .l-src { color: #909399; font-size: 12px; flex-shrink: 0; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-list-ul .l-time { color: #c0c4cc; font-size: 12px; flex-shrink: 0; }
.sd-pager { text-align: center; padding: 20px 0 6px; display: flex; justify-content: center; gap: 8px; }
.sd-pager a, .sd-pager span { display: inline-block; padding: 6px 14px; border: 1px solid #dcdfe6; border-radius: 4px; font-size: 13px; color: #606266; background: #fff; }
.sd-pager a:hover { border-color: #c3272b; color: #c3272b; }
.sd-pager .current { background: #c3272b; color: #fff; border-color: #c3272b; }
.sd-side-widget { margin-bottom: 24px; }
.sd-side-widget h3 { font-size: 15px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.sd-side-widget h3::before { content: ""; width: 4px; height: 15px; background: #c3272b; border-radius: 2px; }
.sd-side-list li { padding: 8px 0; font-size: 13px; border-bottom: 1px dashed #ebeef5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-side-list li:hover a { color: #c3272b; }
.sd-side-list .s-time { color: #c0c4cc; font-size: 12px; margin-left: 8px; }

/* ── 内容页 ── */
.sd-article { background: #fff; border-radius: 6px; margin-top: 12px; padding: 30px 40px; }
.sd-article h1 { font-size: 24px; line-height: 1.5; text-align: center; }
.sd-article-meta { display: flex; justify-content: center; align-items: center; gap: 20px; padding: 16px 0; border-bottom: 1px solid #ebeef5; margin-bottom: 22px; color: #909399; font-size: 13px; flex-wrap: wrap; }
.sd-article-meta .src { color: #c3272b; }
.sd-article-content { font-size: 16px; line-height: 1.9; color: #444; }
.sd-article-content p { margin-bottom: 16px; }
.sd-article-content img { max-width: 100%; margin: 10px auto; border-radius: 6px; }
.sd-article-content video { width: 100%; max-height: 480px; background: #000; border-radius: 6px; }
.sd-article-content iframe { width: 100%; height: 480px; border: none; border-radius: 6px; }
.sd-article-actions { display: flex; justify-content: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid #ebeef5; }
.sd-btn { padding: 8px 28px; border: 1px solid #dcdfe6; border-radius: 20px; font-size: 14px; color: #606266; cursor: pointer; background: #fff; }
.sd-btn:hover { border-color: #c3272b; color: #c3272b; }
.sd-btn.primary { background: #c3272b; color: #fff; border-color: #c3272b; }
.sd-prevnext { display: flex; justify-content: space-between; padding: 16px 0; font-size: 13px; color: #606266; }
.sd-prevnext a { max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-prevnext a:hover { color: #c3272b; }

/* 播放页 */
.sd-player-wrap { background: #000; border-radius: 6px 6px 0 0; overflow: hidden; }
.sd-player-wrap video { width: 100%; max-height: 520px; display: block; }

/* ── 底部 ── */
.sd-footer { background: #fff; border-top: 1px solid #e4e7ed; margin-top: 16px; padding: 24px 0 30px; text-align: center; color: #909399; font-size: 13px; }
.sd-footer .links { display: flex; justify-content: center; gap: 20px; margin-bottom: 12px; }
.sd-footer .links a:hover { color: #c3272b; }
.sd-footer .org { margin-top: 6px; }

/* 面包屑容器 */
.sd-content { min-height: 400px; }
/* ── 评论区（移动端适配） ── */
#comment-container { padding: 0 2px; }
#commentlist dl { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
#commentlist dl:last-child { border-bottom: none; }
#commentlist dt { flex-shrink: 0; }
#commentlist dt img { width: 36px; height: 36px; border-radius: 50%; }
#commentlist dd { flex: 1; min-width: 0; margin: 0; }
#commentlist dd .parent cite { font-style: normal; font-weight: 600; font-size: 14px; }
#commentlist dd .parent small { color: var(--text-3); font-size: 11px; margin-left: 8px; }
#commentlist dd .parent small a { color: var(--primary); }
#commentlist dd .parent p { font-size: 14px; color: #444; margin-top: 4px; line-height: 1.6; word-break: break-all; }
#commentpager { text-align: center; padding: 10px 0; font-size: 13px; }
#postcomment { padding-top: 10px; }
#postcomment h3 { font-size: 14px; margin-bottom: 10px; }
#postcomment textarea {
    width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px;
    font-size: 14px; font-family: inherit; min-height: 80px; outline: none; resize: vertical;
    background: var(--bg); box-sizing: border-box;
}
#postcomment .btn { display: inline-block; padding: 8px 24px; border-radius: 18px; font-size: 14px; border: none; }
#postcomment .btn-primary { background: var(--primary); color: #fff; }
#postcomment .btn-outline-primary { background: #fff; color: var(--primary); border: 1px solid var(--primary); margin-left: 8px; }
#postcomment .checkbox { font-size: 12px; color: var(--text-2); margin-top: 8px; }
#postcomment .form-group { margin-bottom: 10px; }
#actiontips { color: var(--primary); font-size: 12px; margin-left: 8px; }
.loadmore-nodata { text-align: center; color: var(--text-3); font-size: 13px; padding: 16px 0; }
