/*
 * laolicms 网站综合管理系统 v1.0.0
 * 作者：丿king　　联系 QQ：1735737677
 * 本文件作用：详情页样式（移植自旧站 site.php 的页内样式，类名保持一致）
 * 文件路径：application/template/laoli/public/pc/css/view.css
 */
    .dhny_views_chart_canvas {
        width: 100%;
        height: 300px;
        background: #fafafa;
        border-radius: 8px;
    }
    .dark-mode .dhny_views_chart_canvas {
        background: #252525;
    }
    .dhny_module_hidden {
        display: none !important;
    }
    
    /* ===== 收藏按钮样式 ===== */
    .collect-btn {
        padding: 9px 22px;
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.25s ease;
        text-decoration: none;
        font-size: 14px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        border: none;
        outline: none;
        user-select: none;
    }
    .collect-btn.uncollected {
        background: #165dff;
        color: #fff;
    }
    .collect-btn.uncollected:hover {
        background: #0d4bd4;
        transform: translateY(-1px);
    }
    .collect-btn.collected {
        background: #f59e0b;
        color: #fff;
    }
    .collect-btn.collected:hover {
        background: #d97706;
        transform: translateY(-1px);
    }
    .collect-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none !important;
    }
    .collect-btn i {
        font-size: 14px;
    }
    .dark-mode .collect-btn.uncollected {
        background: #1a6bff;
    }
    .dark-mode .collect-btn.collected {
        background: #f59e0b;
    }
    
    /* ===== 收藏数量显示 ===== */
    .collect-count {
        font-size: 12px;
        opacity: 0.8;
        margin-left: 2px;
    }

    /* ===== 星级 ===== */
    .dhny_star_rank .star-on {
        color: #ffb400;
        font-size: 12px;
        margin-right: 2px;
    }
    .dhny_star_rank .star-off {
        color: #dcdcdc;
        font-size: 12px;
        margin-right: 2px;
    }
    .dhny_star_num {
        color: #ff7d00;
        font-size: 12px;
        margin-left: 4px;
    }
    .dark-mode .dhny_star_rank .star-off {
        color: #4a4a4a;
    }

    /* ===== 封面大图（灯箱） ===== */
    .dhny_pic_zoom {
        cursor: zoom-in;
    }
    .dhny_lightbox {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, .85);
        z-index: 9998;
        display: none;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        padding: 24px;
        box-sizing: border-box;
    }
    .dhny_lightbox.open {
        display: flex;
    }
    .dhny_lightbox img {
        max-width: 92%;
        max-height: 82vh;
        border-radius: 6px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, .6);
        cursor: zoom-out;
        background: #fff;
    }
    .dhny_lightbox_tip {
        margin: 12px 0 0;
        color: #ddd;
        font-size: 14px;
        text-align: center;
    }
    .dhny_lightbox_close {
        position: absolute;
        top: 14px;
        right: 22px;
        color: #fff;
        font-size: 34px;
        line-height: 1;
        cursor: pointer;
        user-select: none;
    }
    .dhny_lightbox_close:hover {
        color: #ff7d00;
    }
    @media (max-width: 767px) {
        .dhny_lightbox img {
            max-height: 70vh;
        }
    }

/* ===== 在线工具：内嵌网页 ===== */
.tool-iframe-box {
    position: relative;
    width: 100%;
    height: 900px;
    margin: 15px 0;
    overflow: hidden;
    border: 1px solid #e3e6f0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
    background: #fff;
}
.tool-iframe-box iframe {
    display: block;
    width: 100%;
    border: none;
    background: #fff;
}
.tool-iframe-box:fullscreen {
    height: 100vh;
    border-radius: 0;
}
.tool-iframe-box:fullscreen iframe {
    height: 100% !important;
    margin-top: 0 !important;
}
.tool-full-btn {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 5;
    padding: 9px 12px;
    border: none;
    border-radius: 8px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}
.tool-full-btn:hover {
    background: #1e88e5;
}
.tool-ruku-text {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: Consolas, "Courier New", monospace;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-color, #333);
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
}
/* 信息卡里的多图字段（软件截图等） */
.dhny_cell_img {
    max-width: 120px;
    max-height: 90px;
    margin: 3px 6px 3px 0;
    border-radius: 4px;
    object-fit: cover;
}
@media (max-width: 767px) {
    .tool-iframe-box { height: 620px; }
    .dhny_cell_img { max-width: 90px; max-height: 68px; }
}
.dark-mode .tool-iframe-box {
    border-color: #2c3e50;
    background: #16213e;
}
