/**
 * 资源文章「经典下载样式」
 * 移植自 riprodl1 插件（RIPRO下载信息框 v1.3.3）assets/riprodl.css 中 old.php 使用的规则，
 * 全部作用域收敛在 .ymwl-dl 内，避免污染 ripro-v5 全站样式。
 */

/* ---------- 容器 ---------- */
.ymwl-dl {
    width: 100%;
    margin-bottom: 20px;
}

.ymwl-dl .article-box {
    position: relative;
    width: 100%;
    z-index: 9;
}

.ymwl-dl .content-box {
    background-color: var(--bs-body-bg, #fff);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 10px rgba(0, 0, 0, .04);
}

.ymwl-dl .article-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
    overflow: visible;
}

/* ---------- 左侧封面 + 参数 ---------- */
.ymwl-dl .thumb {
    flex: 0 0 30%;
    max-width: 30%;
    min-width: 240px;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 8px 14px 20px 6px rgba(39, 44, 49, .06),
                1px 3px 8px 6px rgba(39, 44, 49, .03);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.ymwl-dl .iop {
    height: 220px;
    border-radius: 4px;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.ymwl-dl .tagcc {
    list-style: none;
    margin: 12px 0 0;
    padding: 6px 10px;
    background: #f6f6f6;
    border-radius: 4px;
    font-size: 13px;
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
}

.ymwl-dl .tagcc li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 0;
    color: #555;
    line-height: 20px;
}

.ymwl-dl .tagcc li span:first-child {
    color: #999;
    flex: 0 0 auto;
}

.ymwl-dl .tagcc li.ymwl-dl-updated {
    justify-content: center;
    color: #999;
    border-top: 1px dashed rgba(0, 0, 0, .06);
    margin-top: 4px;
    padding-top: 6px;
}

/* ---------- 右侧信息 ---------- */
.ymwl-dl .meta {
    flex: 1 1 0;
    min-width: 0;
    padding: 6px 0 0 14px;
    color: var(--bs-body-color, #333);
}

.ymwl-dl .zy.works-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-radius: 5px 5px 0 0;
}

.ymwl-dl .works-top .post-title {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 24px;
    line-height: 1.4;
    font-weight: 700;
    color: var(--bs-body-color, #2c2c2c);
    word-break: break-word;
}

.ymwl-dl .works-top .right {
    flex: 0 0 auto;
    text-align: right;
    margin: 5px;
}

.ymwl-dl .works-top .hot {
    margin-right: 12px;
    white-space: nowrap;
}

.ymwl-dl .works-top .hot i {
    font-size: 26px;
    color: #fd4f4f;
    vertical-align: middle;
    margin-right: 4px;
}

.ymwl-dl .works-top .hot .num {
    font-size: 26px;
    color: #fd4f4f;
    font-weight: 700;
    font-style: italic;
    vertical-align: middle;
}

/* ---------- 售后服务标签 + 下载须知 ---------- */
.ymwl-dl .proChoice {
    position: relative;
    display: block;
    margin-top: 14px;
}

.ymwl-dl .proChoice .soft {
    float: left;
    width: calc(100% - 140px);
    margin-top: 0;
}

.ymwl-dl .proChoice .soft em {
    float: left;
    display: block;
    width: 104px;
    height: 30px;
    line-height: 30px;
    padding: 0;
    margin: 0;
    text-align: center;
    font-style: normal;
    color: #929191;
    background: transparent;
    border: 1px solid #ddd;
    border-left: 5px solid #1a1919;
    border-radius: 0 32px 32px 0;
    box-sizing: border-box;
}

.ymwl-dl .proChoice .soft span {
    float: left;
    display: block;
    height: 30px;
    line-height: 28px;
    width: auto;
    min-width: 88px;
    padding: 0 14px;
    margin-left: 6px;
    text-align: center;
    color: #929191;
    border: 1px solid #ddd;
    position: relative;
    box-sizing: border-box;
    transition: color .2s, border-color .2s;
}

.ymwl-dl .proChoice .soft span:hover {
    border-color: #d10000;
    color: #ed1c24;
}

.ymwl-dl .proChoice .soft span:after {
    content: "";
    position: absolute;
    top: 19px;
    right: -1px;
    width: 0;
    height: 0;
    display: block;
    border-bottom: 10px solid #222;
    border-left: 10px solid transparent;
}

.ymwl-dl .proChoice .soft span:hover:after {
    border-bottom-color: red;
}

.ymwl-dl .down-notice {
    position: absolute;
    right: 0;
    top: 0;
    margin-top: 0;
}

.ymwl-dl .down-notice span {
    display: block;
    position: relative;
    height: 30px;
    width: 113px;
    line-height: 28px;
    text-align: center;
    color: #ff0000;
    cursor: pointer;
    border: 1px dashed rgba(255, 0, 0, .45);
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 13px;
}

.ymwl-dl .down-notice span i {
    font-size: 13px;
    color: red;
    margin-right: 4px;
}

.ymwl-dl .down-notice span:after {
    content: "";
    position: absolute;
    top: 20px;
    right: 1px;
    width: 0;
    height: 0;
    display: block;
    border-bottom: 10px solid #ff000a;
    border-left: 10px solid transparent;
}

.ymwl-dl .down-notice p {
    display: none;
    position: absolute;
    z-index: 10;
    top: 100%;
    right: 0;
    margin-top: 8px;
    padding: 10px 16px;
    width: 360px;
    max-width: 78vw;
    text-align: justify;
    font-size: 13px;
    line-height: 24px;
    color: #ff5e52;
    background: #fff;
    border: 1px solid #ff5f33;
    border-radius: 10px;
    box-shadow: 0 3px 15px 3px rgba(255, 94, 82, .2);
}

.ymwl-dl .down-notice:hover p {
    display: block;
}

.ymwl-dl .down-notice p:after {
    content: "";
    position: absolute;
    top: -7px;
    right: 30px;
    width: 0;
    height: 0;
    display: block;
    border-bottom: 7px solid #ff5f33;
    border-right: 7px solid transparent;
    border-left: 7px solid transparent;
}

.ymwl-dl .ymwl-dl-clear {
    clear: both;
}

/* ---------- 售价 + 优惠信息 ---------- */
.ymwl-dl .des {
    margin-top: 16px;
    font-weight: 700;
    border-top: 1px dashed rgba(0, 0, 0, .07);
    padding-top: 14px;
}

.ymwl-dl .des .buy {
    display: block;
    font-size: 30px;
    line-height: 40px;
    color: #40a9ff;
}

.ymwl-dl .des .buy i {
    font-size: 20px;
    font-style: normal;
    margin-right: 8px;
}

.ymwl-dl .des .buy c {
    font-size: 15px;
    font-weight: 400;
    margin-left: 3px;
    color: #8c8c8c;
}

.ymwl-dl .des u {
    color: #999;
    font-size: 12px;
    font-weight: 400;
    text-decoration: none;
    padding-left: 10px;
}

.ymwl-dl .meta .price {
    color: #ffc107;
    font-size: 20px;
    margin-right: 5px;
    font-weight: 700;
}

.ymwl-dl .meta .ua {
    font-size: 15px;
    margin-right: 5px;
    color: #8c8c8c;
    font-weight: 400;
}

.ymwl-dl .meta .vip-badge {
    display: inline-block;
    vertical-align: middle;
    margin-left: 14px;
    font-size: 15px;
    font-weight: 800;
    background: linear-gradient(90deg, #d4a017, #ffd700, #ffb700);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #d4a017;
}

.ymwl-dl .meta .boosvip-badge {
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
    padding: 3px 14px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 20px;
    border-radius: 200px;
    background: linear-gradient(90deg, #ff7eb3, #ff65a3);
}

.ymwl-dl .meta .boosvip-badge i {
    margin-right: 4px;
}

.ymwl-dl .meta .boosvip-abs {
    display: inline-block;
    margin-left: 6px;
    font-size: 13px;
    font-weight: 400;
    color: #fd721f;
}

.ymwl-dl .meta .boosvip-abs i {
    color: #fd721f;
    margin-right: 4px;
}

@keyframes ymwlDlMove {
    0% { background-position: 0% 0%; }
    50% { background-position: 50% 100%; }
    100% { background-position: 100% 0%; }
}

/* ---------- 按钮组 ---------- */
.ymwl-dl .downinfo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 16px;
}

.ymwl-dl .downinfo .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 160px;
    height: 44px;
    padding: 0 18px;
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    color: #fff;
    border: 0;
    border-radius: 10px;
    box-shadow: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.ymwl-dl .downinfo .btn:hover {
    transform: scale(.96);
    color: #fff;
}

.ymwl-dl .downinfo .btn-buy {
    background: linear-gradient(-125deg, #f90202 0%, #fd2f44 100%);
}

.ymwl-dl .downinfo .btn-buy:hover {
    background: linear-gradient(-125deg, #69bff9 0%, #7080ef 100%);
}

.ymwl-dl .downinfo .btn-go {
    background: linear-gradient(-125deg, #2f49fd 0%, #1f97fb 100%);
}

.ymwl-dl .downinfo .btn-go:hover {
    background: linear-gradient(-125deg, #2f49fd 0%, #1f97fb 100%);
    opacity: .9;
}

.ymwl-dl .downinfo .btn-demo {
    background: linear-gradient(-125deg, #2f49fd 0%, #1f97fb 100%);
}

.ymwl-dl .downinfo .btn-demo:hover {
    background: linear-gradient(-125deg, #2f49fd 0%, #1f97fb 100%);
    opacity: .9;
}

.ymwl-dl .downinfo .btn-qq {
    background: #333;
}

.ymwl-dl .downinfo .btn-qq:hover {
    background: #444;
}

.ymwl-dl .downinfo .btn.disabled,
.ymwl-dl .downinfo .btn:disabled {
    opacity: .55;
    pointer-events: none;
}

.ymwl-dl .downinfo .pwd {
    display: inline-flex;
    align-items: center;
}

.ymwl-dl .downinfo .copypaw {
    display: inline-block;
    padding: 0 14px;
    height: 44px;
    line-height: 42px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(-125deg, #f7b733 0%, #ffc107 100%);
    border-radius: 8px;
    cursor: copy;
    letter-spacing: .5px;
}

.ymwl-dl .downinfo .copypaw:hover {
    color: #fff;
    opacity: .9;
}

/* ---------- 服务保障 ---------- */
.ymwl-dl .meta .serv {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 26px;
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
}

.ymwl-dl .meta .serv li {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    line-height: 1.6;
    color: var(--bs-body-color, #555);
}

.ymwl-dl .meta .serv li > i {
    color: #40a9ff;
    font-size: 16px;
    margin-right: 6px;
}

/* ---------- 特别声明 ---------- */
.ymwl-dl .shengming {
    display: block;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 400;
    color: #929191;
}

.ymwl-dl .shengming p {
    padding: 10px 12px;
    margin: 0;
    background: #f6f6f6;
    border-radius: 6px;
    line-height: 1.7;
}

.ymwl-dl .shengming i {
    margin-right: 5px;
}

/* ---------- 正文选项卡条（tabtst + zixun，old.php） ---------- */
.ymwl-dl-tabtst {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 4px 0 4px;
    padding: 6px 14px 0;
    border-bottom: 1px solid rgba(0, 0, 0, .05);
}

.ymwl-dl-tabtst .tabtst {
    display: flex;
    align-items: flex-end;
    list-style: none;
    margin: 0;
    padding: 0 0 20px 0;
}

.ymwl-dl-tabtst .tabtst li {
    padding: 0 20px;
    line-height: 42px;
    font-size: 17px;
    color: #ccc;
    cursor: pointer;
    list-style: none;
    border-bottom: 3px solid transparent;
    transition: color .2s;
}

.ymwl-dl-tabtst .tabtst li.on {
    color: #1d68fc;
    border-bottom-color: #1d68fc;
    font-size: 18px;
    font-weight: 600;
}

.ymwl-dl-tabtst .zixun {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f6f6f6;
    border-radius: 20px;
    padding: 4px 14px;
}

.ymwl-dl-tabtst .zixun .dots {
    display: flex;
    gap: 4px;
}

.ymwl-dl-tabtst .zixun .dots i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: block;
}

.ymwl-dl-tabtst .zixun .dots i:nth-child(1) { background: #ff5f57; }
.ymwl-dl-tabtst .zixun .dots i:nth-child(2) { background: #febc2e; }
.ymwl-dl-tabtst .zixun .dots i:nth-child(3) { background: #28c840; }

.ymwl-dl-tabtst .zixun .input {
    border: 0;
    background: #fff;
    border-radius: 12px;
    height: 26px;
    line-height: 26px;
    padding: 0 10px;
    font-size: 12px;
    color: #999;
    width: 200px;
    outline: none;
}

.ymwl-dl-tabtst .zixun .fuzhi {
    font-size: 12px;
    color: #ff5e52;
    cursor: pointer;
    white-space: nowrap;
}

/* ---------- 正文 / 更新记录 面板切换 ---------- */
.ymwl-single-panels .ymwl-single-panel {
    display: none;
}

.ymwl-single-panels .ymwl-single-panel.is-active {
    display: block;
}

/* ---------- 资源更新记录（卡片式折叠列表） ---------- */
.ymwl-dl-news {
    padding: 18px 24px 26px;
}

.ymwl-dl-news .news-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(0, 0, 0, .07);
    font-size: 13px;
    color: #8a93a0;
}

.ymwl-dl-news .news-stats i {
    margin-right: 6px;
    color: #1d68fc;
}

.ymwl-dl-news .news-latest b {
    color: #1d68fc;
    font-weight: 700;
}

.ymwl-dl-news .list-news-item {
    margin-bottom: 8px;
    border-radius: 10px;
    transition: background .2s, box-shadow .2s;
}

.ymwl-dl-news .list-news-item:last-child {
    margin-bottom: 0;
}

/* 整行可点 */
.ymwl-dl-news .list-news-head {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 40px 12px 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
    transition: background .2s, border-color .2s;
}

.ymwl-dl-news .list-news-head:hover {
    background: #f4f8ff;
    border-color: #dbe7ff;
}

.ymwl-dl-news .list-news-item.is-open .list-news-head {
    background: #f4f8ff;
    border-color: #dbe7ff;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* 状态圆点 */
.ymwl-dl-news .list-news-dot {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #d3dae6;
}

.ymwl-dl-news .list-news-item.is-open .list-news-dot {
    background: #1d68fc;
    box-shadow: 0 0 0 3px rgba(29, 104, 252, .15);
}

/* 版本号徽章 */
.ymwl-dl-news .ver-no {
    padding: 2px 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    color: #1d68fc;
    background: rgba(29, 104, 252, .08);
    border-radius: 6px;
    transition: background .2s;
}

.ymwl-dl-news .list-news-head:hover .ver-no {
    background: rgba(29, 104, 252, .14);
}

/* 最新标签 */
.ymwl-dl-news .list-news-tag {
    padding: 1px 8px;
    font-size: 11px;
    line-height: 1.6;
    color: #fff;
    background: linear-gradient(90deg, #ff7a45, #ff4d4f);
    border-radius: 20px;
}

/* 更新条数 */
.ymwl-dl-news .ver-count {
    font-size: 12px;
    color: #9aa2ae;
}

/* 时间 */
.ymwl-dl-news .list-news-time {
    margin-left: auto;
    font-size: 12px;
    color: #9aa2ae;
}

/* 展开箭头 */
.ymwl-dl-news .ver-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    font-size: 12px;
    color: #b3bcc9;
    transition: transform .3s ease, color .2s;
}

.ymwl-dl-news .list-news-head:hover .ver-arrow {
    color: #1d68fc;
}

.ymwl-dl-news .list-news-item.is-open .ver-arrow {
    transform: translateY(-50%) rotate(180deg);
    color: #1d68fc;
}

/* 展开内容（带过渡） */
.ymwl-dl-news .list-news-desc {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}

.ymwl-dl-news .list-news-item.is-open .list-news-desc {
    max-height: 800px;
}

.ymwl-dl-news .desc-inner {
    margin: 0 12px 12px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e6eefc;
    border-radius: 8px;
}

.ymwl-dl-news .desc-line {
    display: flex;
    gap: 8px;
    font-size: 13px;
    line-height: 1.9;
    color: #5b6472;
}

.ymwl-dl-news .desc-line::before {
    content: "";
    flex: 0 0 auto;
    width: 5px;
    height: 5px;
    margin-top: 9px;
    border-radius: 50%;
    background: #9db8e8;
}

/* ---------- 暗黑模式 ---------- */
html[data-bs-theme="dark"] .ymwl-dl .content-box {
    background-color: #1d1f20;
    box-shadow: none;
}

html[data-bs-theme="dark"] .ymwl-dl .tagcc {
    background: #232425;
    color: #8c8c8c;
}

html[data-bs-theme="dark"] .ymwl-dl .tagcc li,
html[data-bs-theme="dark"] .ymwl-dl .meta .serv li {
    color: #b6bcc4;
}

html[data-bs-theme="dark"] .ymwl-dl .proChoice .soft em,
html[data-bs-theme="dark"] .ymwl-dl .proChoice .soft span {
    border-color: #3a3d40;
    border-left-color: #ff0000;
    color: #9ba1a8;
}

html[data-bs-theme="dark"] .ymwl-dl .des {
    border-top-color: rgba(255, 255, 255, .08);
}

html[data-bs-theme="dark"] .ymwl-dl .down-notice p {
    background: #232425;
    color: #ff8a80;
    border-color: #ff5f33;
}

html[data-bs-theme="dark"] .ymwl-dl .down-notice p:after {
    border-bottom-color: #ff5f33;
}

html[data-bs-theme="dark"] .ymwl-dl .shengming p {
    background: #232425;
    color: #8c8c8c;
}

html[data-bs-theme="dark"] .ymwl-dl-tabtst {
    border-bottom-color: rgba(255, 255, 255, .08);
}

html[data-bs-theme="dark"] .ymwl-dl-tabtst .zixun {
    background: #232425;
}

html[data-bs-theme="dark"] .ymwl-dl-tabtst .zixun .input {
    background: #1d1f20;
    color: #8c8c8c;
}

html[data-bs-theme="dark"] .ymwl-dl-news .news-stats {
    border-bottom-color: rgba(255, 255, 255, .08);
}

html[data-bs-theme="dark"] .ymwl-dl-news .list-news-head:hover,
html[data-bs-theme="dark"] .ymwl-dl-news .list-news-item.is-open .list-news-head {
    background: #232425;
    border-color: #2f3336;
}

html[data-bs-theme="dark"] .ymwl-dl-news .ver-no {
    color: #7aa7ff;
    background: rgba(29, 104, 252, .16);
}

html[data-bs-theme="dark"] .ymwl-dl-news .list-news-dot {
    background: #3a3d40;
}

html[data-bs-theme="dark"] .ymwl-dl-news .list-news-item.is-open .list-news-dot {
    background: #1d68fc;
}

html[data-bs-theme="dark"] .ymwl-dl-news .desc-inner {
    background: #1d1f20;
    border-color: #2f3336;
}

html[data-bs-theme="dark"] .ymwl-dl-news .desc-line {
    color: #9ba1a8;
}

/* ---------- 响应式 ---------- */
/* 中屏（≤1199px）：整体收紧（tab 与咨询条必须保持同一行，不换行错位） */
@media (max-width: 1199px) {
    .ymwl-dl-tabtst {
        gap: 6px;
    }

    .ymwl-dl-tabtst .tabtst {
        padding-bottom: 16px;
    }

    .ymwl-dl-tabtst .tabtst li {
        padding: 0 12px;
        font-size: 15.5px;
    }

    .ymwl-dl-tabtst .tabtst li.on {
        font-size: 16.5px;
    }

    .ymwl-dl-tabtst .zixun .input {
        width: 110px;
    }

    .ymwl-dl-tabtst .zixun .fuzhi {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 991px) {
    .ymwl-dl .thumb {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .ymwl-dl .iop {
        height: 200px;
    }

    .ymwl-dl .meta {
        padding: 6px 0 0;
    }

    .ymwl-dl .proChoice .soft {
        float: none;
        width: 100%;
        margin-bottom: 10px;
    }

    .ymwl-dl .down-notice {
        position: relative;
        right: auto;
        top: auto;
        margin-bottom: 10px;
    }

    .ymwl-dl .down-notice span {
        display: inline-block;
    }

    .ymwl-dl .down-notice p {
        right: auto;
        left: 0;
    }

    .ymwl-dl .downinfo .btn {
        flex: 1 1 calc(50% - 10px);
        min-width: 0;
    }

    /* 平板及以下：咨询条只保留三个圆点（隐藏链接框与复制提示，避免换行挤压） */
    .ymwl-dl-tabtst .zixun .input,
    .ymwl-dl-tabtst .zixun .fuzhi {
        display: none;
    }

    .ymwl-dl-tabtst .zixun {
        padding: 5px 10px;
    }
}

@media (max-width: 575px) {
    .ymwl-dl .article-info {
        padding: 14px;
    }

    .ymwl-dl .works-top .post-title {
        font-size: 20px;
    }

    .ymwl-dl .works-top .hot .num,
    .ymwl-dl .works-top .hot i {
        font-size: 20px;
    }

    .ymwl-dl .des .buy {
        font-size: 24px;
    }

    .ymwl-dl .downinfo .btn {
        flex: 1 1 100%;
    }
}
