/* art/detail.html */

.art-detail-main { flex: 1; }

/* ---------- breadcrumb（僅 .bc-sep／.bc-current 是活的，跟通用 .breadcrumb 搭配用；
   舊版 .art-breadcrumb／.art-layout／.art-leftnav／.art-header／.art-meta-item／
   .art-prev-next／.art-pn-*／.art-rel-vod／.art-section-title／.vod-row 等一批選擇器
   都對不上目前頁面實際 markup（頁面改版後留下的死代碼，會製造「同一個 class 兩處定義」
   的風險），已清除；上一篇/下一篇實際用的 .plot-nav* 見下方，之前完全沒有樣式，已補上）---------- */
.bc-sep { color: var(--text-3); font-size: 12px; }
.bc-current { color: var(--text-1); }

/* ---------- article header ---------- */

/* ---------- prev/next（實際 markup 用 .plot-nav*，跟 plot_detail.css 同一套視覺，
   之前這裡放的是改版前的 .art-prev-next/.art-pn-* 死代碼，導致這塊完全沒有樣式）---------- */
.plot-nav {
    display: flex;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    margin-bottom: 24px;
}
.plot-nav-prev,
.plot-nav-next {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.plot-nav-next {
    text-align: right;
    align-items: flex-end;
}
.plot-nav-label {
    font-size: 12px;
    color: var(--text-3);
}
.plot-nav-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
    text-decoration: none;
    transition: color .18s;
}
.plot-nav-link:hover,
.plot-nav-link--accent { color: var(--accent); }
.plot-nav-none {
    font-size: 13px;
    color: var(--text-3);
}
@media (max-width: 767px) {
    .plot-nav { flex-direction: column; }
    .art-title { font-size: 20px; }
}

/* ---------- sidebar ---------- */
.art-sidebar { position: sticky; top: calc(var(--topbar-h) + 12px); }
.art-sb-block {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; margin-bottom: 16px;
}
.art-sb-title {
    display: flex; align-items: center; gap: 6px;
    font-size: 14px; font-weight: 600; color: var(--text-1);
    padding: 12px 16px; border-bottom: 1px solid var(--border);
}
/* 「热播影视」侧栏（widget/art_hot_vod，与 art_type.css 共用同一份规则副本——此前只有
   art_type.css 有这段，art_detail.css 完全没定义，导致资讯详情页右栏渲染成裸链接） */
.art-hot-list { padding: 8px 0; }
.art-hot-list li a {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 16px; font-size: 13px; color: var(--text-2);
    transition: color 0.2s;
}
.art-hot-list li a:hover { color: var(--accent); }
.ahl-num {
    flex-shrink: 0; width: 20px; height: 20px;
    border-radius: 3px; background: var(--bg-elevated);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; color: var(--text-3);
}
.ahl-num--1 { background: #f0b429; color: #1a1a1a; }
.ahl-num--2 { background: #b0b8c8; color: #1a1a1a; }
.ahl-num--3 { background: #c28060; color: #1a1a1a; }
.ahl-name { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.art-sb-read-list { padding: 8px 12px; }
.art-sb-item a { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.art-sb-item:last-child a { border-bottom: none; }
.asi-thumb { flex-shrink: 0; width: 64px; height: 42px; border-radius: 4px; overflow: hidden; background: var(--bg-elevated); }
.asi-thumb img { width: 100%; height: 100%; object-fit: cover; }
.asi-info { flex: 1; min-width: 0; }
.asi-title { font-size: 13px; color: var(--text-2); line-height: 1.4; margin-bottom: 4px; }
.art-sb-item a:hover .asi-title { color: var(--accent); }
.asi-cat { font-size: 11px; color: var(--text-3); }

/* ---------- captcha ---------- */
.art-captcha { height: 36px; width: auto; border-radius: 4px; cursor: pointer; }

/* ---------- comment section ---------- */
.detail-section {
    margin-bottom: 28px;
}
.detail-section-hd {
    display: flex; align-items: center; gap: 8px;
    font-size: 16px; font-weight: 600; color: var(--text-1);
    margin-bottom: 16px; padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.cmt-total-label { font-weight: 400; color: var(--text-3); font-size: 14px; }
.cmt-total-label em { color: var(--accent); font-style: normal; }

/* 評論表單 */
.cmt-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 20px;
}
.cmt-textarea {
    width: 100%; min-height: 90px;
    padding: 10px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-sm);
    color: var(--text-1);
    font-size: 14px; font-family: inherit;
    line-height: 1.6; resize: vertical; outline: none;
    box-sizing: border-box;
    transition: border-color .15s;
}
.cmt-textarea:focus { border-color: var(--accent); }
.cmt-textarea::placeholder { color: var(--text-3); }

.cmt-form-footer {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 10px;
    margin-top: 10px;
}
.cmt-verify-row {
    display: flex; align-items: center; gap: 8px;
}
.cmt-verify-input {
    height: 36px; width: 110px;
    padding: 0 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-sm);
    color: var(--text-1);
    font-size: 13px; outline: none;
    transition: border-color .15s;
}
.cmt-verify-input:focus { border-color: var(--accent); }
.cmt-captcha-img {
    height: 36px; width: auto;
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.cmt-form-right {
    display: flex; align-items: center; gap: 12px;
}
.cmt-remaining {
    font-size: 12px; color: var(--text-3);
}
.cmt-remaining em { color: var(--accent); font-style: normal; }
.cmt-submit-btn {
    height: 36px; padding: 0 20px;
    background: var(--accent);
    border: none; border-radius: var(--radius-sm);
    color: #fff; font-size: 13px; font-weight: 600;
    cursor: pointer; transition: background .15s;
}
.cmt-submit-btn:hover { background: var(--accent-hover); }

.cmt-ajax-wrap{
    border: none;
    background: transparent;
}

/* 評論列表 */
.cmt-list { display: flex; flex-direction: column; gap: 0; list-style: none; margin: 0; padding: 0; }
.cmt-item-reply-list { list-style: none; margin-top: 10px; padding: 0; }
.cmt-item {
    display: flex; gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.cmt-item:last-child { border-bottom: none; }
.cmt-avatar {
    flex-shrink: 0; width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 14px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    text-transform: uppercase;
}
.cmt-body { flex: 1; min-width: 0; }
.cmt-meta {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 6px;
}
.cmt-name { font-size: 13px; font-weight: 600; color: var(--text-1); }
.cmt-time { font-size: 12px; color: var(--text-3); }
.cmt-content { font-size: 14px; color: var(--text-2); line-height: 1.7; word-break: break-all; }

/* 子評論（回覆） */
.cmt-child-item {
    margin-top: 10px; padding: 10px 14px;
    background: var(--bg-elevated);
    border-left: 3px solid var(--border-2);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 13px;
}
.cmt-child-name { font-weight: 600; color: var(--accent); margin-right: 6px; }
.cmt-child-item .cmt-time { font-size: 11px; color: var(--text-3); }
.cmt-child-item .cmt-content { margin-top: 4px; color: var(--text-2); }

/* 操作連結 */
.cmt-actions { margin-top: 8px; display: flex; gap: 12px; }
.cmt-action-link {
    font-size: 12px; color: var(--text-3);
    transition: color .15s;
}
.cmt-action-link:hover { color: var(--accent); }

/* 空狀態 */
.cmt-empty {
    padding: 28px 0; text-align: center;
    font-size: 14px; color: var(--text-3);
}
.cmt-loading { padding: 20px 0; text-align: center; font-size: 14px; color: var(--text-3); }

/* 分頁 */
.cmt-paging {
    display: flex; align-items: center; gap: 6px;
    padding: 16px 0 4px; flex-wrap: wrap;
}
.cmt-page-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 32px; height: 32px; padding: 0 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text-2); font-size: 13px;
    transition: all .15s;
}
.cmt-page-btn:hover { color: var(--text-1); border-color: var(--border-2); }
.cmt-page-btn.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.cmt-page-btn.is-disabled { opacity: 0.4; pointer-events: none; }

/* ===== hanju_white 文章詳細頁 ===== */
.art-detail-wrap { padding: 8px 0 10px; }
.art-title {
  font-size: 22px; font-weight: 700; color: var(--text-1);
  line-height: 1.4; margin-bottom: 12px;
}
.art-meta {
  display: flex; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: var(--text-3);
  padding-bottom: 14px; margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.art-meta .mac-icon { vertical-align: middle; margin-right: 3px; }
.art-meta-cat {
  padding: 2px 8px; background: var(--accent-light);
  color: var(--accent); border-radius: 3px; font-size: 12px; font-weight: 600;
}
.art-body { font-size: 15px; color: var(--text-2); line-height: 1.9; }
.art-body p { margin-bottom: 14px; }
.art-body img { max-width: 100%; border-radius: var(--radius); margin: 8px 0; }

/* ===== 面包屑 ol 重置（main.css 只定义了 .breadcrumb 字色，未重置 ol，缺了会变竖排编号列表） ===== */
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0; gap: 2px; }
.breadcrumb li { display: flex; align-items: center; }

/* ===== 多页文章分页 ===== */
.ad-pager { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 4px 0 20px; }
.ad-pager-item {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 32px; padding: 0 10px;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg-elevated); color: var(--text-2); font-size: 13px; transition: all .15s;
}
.ad-pager-item:hover { color: var(--text-1); border-color: var(--border-2); }
.ad-pager-item.is-active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }

/* ===== 文章标签 ===== */
.art-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; }
.art-tags-label { font-size: 13px; color: var(--text-3); }
.art-tag {
  padding: 3px 10px; border-radius: 3px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  color: var(--text-2); font-size: 12px; transition: all .15s;
}
.art-tag:hover { color: var(--accent); border-color: var(--accent); }
