/* ==========================================================================
 * TN 视频试看 — 样式 v2.0.0
 * 移植自 lihuizi.cn lhk-video-guard.css + lhk-video-cta.css
 * 新增：lhk-stats（统计条）、lhk-share（学币分享）、lhk-pm（海报弹窗）
 * 适配 B2 主题：显式指定颜色，不依赖主题变量
 * ========================================================================== */

.lhk-video-box {
    margin: 26px 0;
    padding: 20px 22px;
    border: 1px solid #e3e8ef;
    border-radius: 10px;
    background: #fff;
    line-height: 1.7;
}

.lhk-video-box .lhk-h {
    margin: 0 0 14px;
    padding-left: 12px;
    border-left: 4px solid #3b82f6;
    font-size: 18px;
    font-weight: 600;
    color: #1f2328;
}

/* ---------- 统计条：总试看 / 今日试看 ---------- */
.lhk-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.lhk-stats .lhk-stat {
    flex: 1 1 0;
    min-width: 140px;
    padding: 12px 16px;
    border: 1px solid #e3e8ef;
    border-radius: 8px;
    background: #f5f8fc;
    font-size: 14px;
    color: #5b6472;
}

.lhk-stats .lhk-stat b {
    color: #2563eb;
    font-size: 20px;
    font-weight: 700;
    margin: 0 2px;
    font-variant-numeric: tabular-nums;
}

/* ---------- 身份 / 配额条 ---------- */
.lhk-status {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 14px;
    border: 1px solid #f3c6c6;
    border-radius: 999px;
    background: #fef4f4;
    color: #c0392b;
    font-size: 13px;
    font-weight: 500;
}

.lhk-status[data-role="guest"] {
    border-color: #f6d9a8;
    background: #fff9ec;
    color: #b7791f;
}

.lhk-status[data-role="vip"] {
    border-color: #f5c98a;
    background: #fff6e8;
    color: #b45309;
}

/* ---------- 视频条目 ---------- */
.lhk-list {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
}

.lhk-list .lhk-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 8px;
    border: 1px solid #e8edf3;
    border-radius: 8px;
    background: #fafbfd;
    flex-wrap: wrap;
}

.lhk-list .lhk-name {
    flex: 1 1 auto;
    min-width: 200px;
    color: #374151;
    font-size: 14px;
    word-break: break-all;
}

.lhk-btn {
    flex: 0 0 auto;
    padding: 8px 18px;
    border: none;
    border-radius: 6px;
    background: #2563eb;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background .18s;
}

.lhk-btn:hover { background: #1d4ed8; }
.lhk-btn:disabled { background: #9ca3af; cursor: not-allowed; }

.lhk-code {
    flex: 0 0 100%;
    padding: 10px 14px;
    border-radius: 6px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    font-size: 14px;
    color: #065f46;
}

.lhk-code[hidden] { display: none; }

.lhk-code code {
    display: inline-block;
    margin-left: 4px;
    padding: 2px 10px;
    border-radius: 4px;
    background: #fff;
    border: 1px dashed #34d399;
    color: #047857;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    user-select: all;
}

/* ---------- 学币分享块 ---------- */
.lhk-share {
    margin: 16px 0;
    padding: 16px 18px;
    border: 1px solid #fde3c0;
    border-radius: 10px;
    background: #fffaf2;
    text-align: center;
}

.lhk-share-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: filter .18s;
}

.lhk-share-btn:hover { filter: brightness(1.06); }
.lhk-share-btn:disabled { opacity: .6; cursor: not-allowed; }

.lhk-share-meta {
    margin-top: 10px;
    font-size: 13px;
    color: #8a6d3b;
    line-height: 1.7;
}

.lhk-share-meta strong { color: #ea580c; }

.lhk-share-hint {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #a08b62;
}

/* ---------- 分享海报弹窗 ---------- */
.lhk-pm { position: fixed; inset: 0; z-index: 99999; }
.lhk-pm[hidden] { display: none; }

.lhk-pm-mask {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .62);
}

.lhk-pm-box {
    position: relative;
    margin: 6vh auto 0;
    max-width: 420px;
    width: calc(100% - 32px);
    padding: 18px 20px 20px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .28);
    text-align: center;
}

.lhk-pm-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 16px;
    color: #1f2328;
}

.lhk-pm-x {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.lhk-pm-x:hover { background: #e2e8f0; }

.lhk-pm-img {
    display: block;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.lhk-pm-loading {
    margin-top: 10px;
    font-size: 13px;
    color: #94a3b8;
}

.lhk-pm-loading[hidden] { display: none; }

.lhk-pm-acts {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.lhk-pm-btn {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #475569;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.lhk-pm-btn:hover { background: #eef2f7; }

.lhk-pm-primary {
    border-color: #f97316;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    color: #fff;
    border: none;
}

.lhk-pm-primary:hover { filter: brightness(1.06); background: linear-gradient(90deg, #f59e0b, #f97316); }

.lhk-pm-tip {
    margin: 12px 0 0;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.7;
}

.lhk-pm-toast {
    margin-top: 8px;
    font-size: 13px;
    color: #059669;
}

.lhk-pm-toast[hidden] { display: none; }

/* ---------- 底部说明 ---------- */
.lhk-tip {
    margin: 12px 0 0;
    font-size: 12.5px;
    color: #8b95a3;
    line-height: 1.8;
}

/* ==========================================================================
 * 顶部 CTA 横幅（移植自 lhk-video-cta.css）
 * ========================================================================== */

.lhk-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 22px;
    padding: 16px 20px;
    border: 1px solid #fde68a;
    border-radius: 12px;
    background: linear-gradient(90deg, #fffbeb, #fff7ed);
}

.lhk-cta-ico {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f59e0b;
    color: #fff;
    font-size: 17px;
}

.lhk-cta-txt {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}

.lhk-cta-txt strong {
    font-size: 15px;
    color: #1f2328;
    font-weight: 600;
}

.lhk-cta-txt span {
    font-size: 13px;
    color: #8a7460;
}

.lhk-cta-btn {
    flex: 0 0 auto;
    padding: 10px 22px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: filter .18s;
}

.lhk-cta-btn:hover { filter: brightness(1.06); color: #fff; }

/* ---------- 移动端 ---------- */
@media (max-width: 600px) {
    .lhk-video-box { padding: 16px 14px; }
    .lhk-stats { gap: 8px; }
    .lhk-stats .lhk-stat { min-width: 100%; }
    .lhk-list .lhk-item { flex-direction: column; align-items: stretch; }
    .lhk-btn { width: 100%; }
    .lhk-cta { flex-wrap: wrap; padding: 14px 16px; }
    .lhk-cta-btn { width: 100%; text-align: center; }
}
