/* AxdPro 主题扩展样式 */

/* 1366/1280 等窄桌面不再被 1400px 固定宽度撑出横向滚动条 */
@media screen and (min-width: 801px) and (max-width: 1439px) {
    body {
        min-width: 0;
    }

    .container {
        width: 100%;
        max-width: 1400px;
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
    }

    /* 最近更新 + 右侧在线工具：容器收窄后让左栏跟着变宽，避免 340px 侧栏被挤到下一行 */
    .index-news {
        width: calc(100% - 360px);
    }

    .index-news-list {
        width: 100%;
    }

    .index-news-list ul li {
        width: calc(50% - 5px);
        box-sizing: border-box;
    }

    .index-info {
        width: 340px;
    }

    /* 文章正文 + 右侧栏：避免 1000px 正文把 370px 侧栏挤到文章下面 */
    .article-main .left {
        width: calc(100% - 390px);
    }

    .article-main.no-side .left {
        width: 100%;
    }
}

/* 首页最近更新：白色面板始终撑满右栏高度，不随文章数量塌陷 */
.index-main {
    display: flex;
    align-items: stretch;
    gap: 20px;
}

.index-news {
    float: none;
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.index-news-list {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.index-news-list ul {
    flex: 1;
}

.index-news-list .page {
    margin-top: auto;
}

.index-info {
    float: none;
    flex: 0 0 340px;
}

/* 首页搜索区 */
.index-box .search-box form .txt {
    flex: 1;
    height: 100%;
    border: 0;
    outline: none;
    background: transparent;
    padding: 0 16px;
    font-size: 15px;
    color: #1f2937;
}
.index-box .search-box .dag-search-btn {
    border: 0;
    height: 40px;
    padding: 0 26px;
    border-radius: 999px;
    background: #007bf5;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}
.index-box .search-box .dag-search-btn:hover { filter: brightness(.94); }

/* 首页轮播 */
.respro-home-carousel {
    height: 360px;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
}
.respro-home-carousel a { display: block; width: 100%; height: 100%; }
.respro-home-carousel img { width: 100%; height: 100%; object-fit: cover; }

/* 下载专区模块 */
.dag-dlzone-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.dag-dlzone-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .05);
    transition: transform .2s, box-shadow .2s;
}
.dag-dlzone-item:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(15, 23, 42, .1); }
.dag-dlzone-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    flex: none;
    background: linear-gradient(135deg, #e0ecff, #f2f7ff);
}
.dag-dlzone-icon img { width: 100%; height: 100%; object-fit: cover; }
.dag-dlzone-info { flex: 1; min-width: 0; }
.dag-dlzone-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dag-dlzone-meta { display: block; margin-top: 6px; font-size: 12px; color: #94a3b8; }
.dag-dlzone-btn {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 6px;
    background: #007bf5;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}
.dag-dlzone-btn:hover { color: #fff; filter: brightness(.94); }

/* 文章专区模块 */
.dag-artzone-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.dag-artzone-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .05);
    transition: transform .2s, box-shadow .2s;
}
.dag-artzone-item:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(15, 23, 42, .1); }
.dag-artzone-img { display: block; height: 190px; overflow: hidden; }
.dag-artzone-img img { width: 100%; height: 100%; object-fit: cover; }
.dag-artzone-body { padding: 16px; }
.dag-artzone-body h3 { margin: 0 0 8px; font-size: 16px; line-height: 1.5; }
.dag-artzone-body h3 a { color: #1f2937; }
.dag-artzone-body p {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.7;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 侧边在线工具 */
.respro-tools-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 8px;
    margin: 0;
    padding: 16px;
    list-style: none;
}
.respro-tools-list li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #475569;
    font-size: 12px;
    text-align: center;
    line-height: 1.4;
}
.respro-tool-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f2f6fc;
}
.respro-tool-icon img { width: 26px; height: 26px; object-fit: contain; }

/* 列表页侧边栏 */
.list-main .dag-list-wrap.with-side { display: flex; align-items: flex-start; gap: 20px; }
.list-main .dag-list-wrap.with-side .dag-list-col { flex: 1; min-width: 0; }
.list-main .dag-list-wrap.with-side .right.public { width: 340px; flex: none; float: none; }
.list-main .dag-list-wrap.with-side .right.public .box { margin-top: 0; }

/* 文章页广告 */
.respro-article-ad { margin: 18px 0; text-align: center; }
.respro-article-ad img { max-width: 100%; height: auto; border-radius: 6px; }

/* 骨架屏 */
@keyframes resproShimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}
img.lazy {
    background: linear-gradient(90deg, #eef2f7 25%, #f8fafc 37%, #eef2f7 63%);
    background-size: 400% 100%;
    animation: resproShimmer 1.4s ease-in-out infinite;
}
img.lazy.respro-loaded { animation: none; background: none; }

/* 禁用 JS 提示 */
.respro-nojs {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 999999;
    padding: 12px 18px;
    border-radius: 8px;
    background: #ef4444;
    color: #fff;
    font-size: 14px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(239, 68, 68, .35);
}

/* 内容隐藏提示 */
.respro-hide-tip {
    display: block;
    margin: 16px 0;
    padding: 18px;
    border-radius: 8px;
    background: #f1f7ff;
    border: 1px dashed #93c5fd;
    color: #1d4ed8;
    text-align: center;
    font-size: 14px;
}
.respro-hide-tip a { color: #007bf5; font-weight: 600; }

/* 手机端隐藏广告 */
@media screen and (max-width: 800px) {
    body.dag-ad-nomobile .ad { display: none !important; }
    .dag-dlzone-grid { grid-template-columns: minmax(0, 1fr); }
    .dag-dlzone-item {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    .dag-artzone-grid { grid-template-columns: 1fr; }
    .respro-tools-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .list-main .dag-list-wrap.with-side { display: block; }
    .list-main .dag-list-wrap.with-side .right.public { width: auto; margin-top: 20px; }
}

@media screen and (min-width: 801px) and (max-width: 1100px) {
    .dag-dlzone-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 夜间模式 */
body.night .dag-dlzone-item,
body.night .dag-artzone-item { background: #1f2329; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
body.night .dag-dlzone-name,
body.night .dag-artzone-body h3 a { color: #e5e7eb; }
body.night .dag-artzone-body p,
body.night .dag-dlzone-meta { color: #94a3b8; }
body.night .respro-tool-icon { background: #2a3038; }
body.night .respro-tools-list li a { color: #cbd5e1; }
body.night .respro-hide-tip { background: #1e293b; border-color: #334155; color: #93c5fd; }
body.night .index-box .search-box form .txt { color: #e5e7eb; }

/* 首页仅在线工具时的居中布局 */
.index-main.only-info { display: flex; justify-content: center; }
.index-main.only-info .index-info { float: none; }

/* 文章页无侧栏 */
.article-main.no-side .left { width: 100%; float: none; }

/* 简洁列表 */
.dag-simple { background: #fff; border-radius: 8px; padding: 6px 22px; }
.dag-simple-item { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px 0; border-bottom: 1px solid #eef1f6; }
.dag-simple-item:last-child { border-bottom: 0; }
.dag-simple-tit { font-size: 15px; color: #1f2937; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dag-simple-meta { flex: none; font-size: 13px; color: #94a3b8; }

/* 图文列表 */
.dag-dls.dag-image .dag-dl-img { width: 240px; height: 150px; }

/* 下载列表 */
.dag-download { display: flex; flex-direction: column; gap: 12px; }
.dag-download-item { display: flex; align-items: center; gap: 18px; padding: 16px; border-radius: 8px; background: #fff; box-shadow: 0 2px 10px rgba(15, 23, 42, .05); }
.dag-download-img { width: 160px; height: 100px; flex: none; border-radius: 6px; overflow: hidden; background: #f2f6fc; }
.dag-download-img img { width: 100%; height: 100%; object-fit: cover; }
.dag-download-body { flex: 1; min-width: 0; }
.dag-download-body h3 { margin: 0 0 8px; font-size: 16px; }
.dag-download-body h3 a { color: #1f2937; }
.dag-download-body p { margin: 0 0 10px; font-size: 13px; line-height: 1.7; color: #64748b; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dag-download-btn { flex: none; padding: 9px 18px; border-radius: 6px; background: #007bf5; color: #fff; font-size: 13px; font-weight: 600; }
.dag-download-btn:hover { color: #fff; filter: brightness(.94); }

/* 瀑布流 */
.dag-waterfall { column-count: 3; column-gap: 16px; }
.dag-waterfall-item { break-inside: avoid; margin: 0 0 16px; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 2px 10px rgba(15, 23, 42, .05); }
.dag-waterfall-img { display: block; background: #f2f6fc; }
.dag-waterfall-img img { display: block; width: 100%; height: auto; }
.dag-waterfall-body { padding: 14px 16px 16px; }
.dag-waterfall-body h3 { margin: 0 0 8px; font-size: 15px; line-height: 1.5; }
.dag-waterfall-body h3 a { color: #1f2937; }
.dag-waterfall-body p { margin: 0 0 10px; font-size: 13px; line-height: 1.7; color: #64748b; }

body.night .dag-simple,
body.night .dag-download-item,
body.night .dag-waterfall-item { background: #1f2329; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
body.night .dag-simple-item { border-bottom-color: #2c313a; }
body.night .dag-simple-tit,
body.night .dag-download-body h3 a,
body.night .dag-waterfall-body h3 a { color: #e5e7eb; }
body.night .dag-download-body p,
body.night .dag-waterfall-body p { color: #94a3b8; }

@media screen and (max-width: 1100px) {
    .dag-waterfall { column-count: 2; }
    .dag-dls.dag-image .dag-dl-img { width: 200px; height: 125px; }
}

@media screen and (max-width: 800px) {
    .dag-waterfall { column-count: 1; }
    .dag-simple-item { display: block; }
    .dag-simple-meta { display: block; margin-top: 6px; }
    .dag-download-item { display: block; }
    .dag-download-img { width: 100%; height: 170px; margin-bottom: 12px; }
    .dag-download-btn { display: inline-flex; margin-top: 10px; }
}

/* 滚动收缩时用户图标与搜索/工具图标保持同一行 */
header.su .user-open {
    line-height: 50px;
}

/* 会员中心 */
.respro-member { display: flex; align-items: flex-start; gap: 24px; margin: 92px auto 60px; }
.respro-member-side { width: 270px; flex: none; position: sticky; top: 90px; }
.respro-member-main { flex: 1; min-width: 0; }
.respro-member-user { background: #fff; border-radius: 10px; padding: 24px 20px; text-align: center; box-shadow: 0 4px 18px rgba(15, 23, 42, .06); }
.respro-member-user img { width: 78px; height: 78px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 12px; }
.respro-member-user h3 { margin: 0 0 6px; font-size: 17px; color: #1f2937; }
.respro-member-user p { margin: 0 0 12px; font-size: 13px; color: #94a3b8; }
.respro-vip { display: inline-block; padding: 2px 10px; border-radius: 999px; background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff; font-size: 12px; }
.respro-member-balance { padding: 10px; border-radius: 8px; background: #f2f7ff; font-size: 13px; color: #475569; }
.respro-member-balance b { font-size: 20px; color: #007bf5; }
.respro-member-nav { margin-top: 14px; background: #fff; border-radius: 10px; padding: 8px; box-shadow: 0 4px 18px rgba(15, 23, 42, .06); }
.respro-member-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 7px; color: #475569; font-size: 14px; }
.respro-member-nav a i { width: 18px; text-align: center; color: #94a3b8; }
.respro-member-nav a:hover { background: #f5f8fd; color: #007bf5; }
.respro-member-nav a.active { background: #007bf5; color: #fff; }
.respro-member-nav a.active i { color: #fff; }

.respro-member-panel { display: none; }
.respro-member-panel.active { display: block; }
.respro-member-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.respro-member-head h2 { margin: 0 0 6px; font-size: 22px; color: #1f2937; }
.respro-member-head p { margin: 0; font-size: 14px; color: #64748b; }
.respro-member-block { background: #fff; border-radius: 10px; padding: 22px; margin-bottom: 18px; box-shadow: 0 4px 18px rgba(15, 23, 42, .05); }
.respro-member-block h3 { margin: 0 0 14px; font-size: 16px; color: #1f2937; }
.respro-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.respro-stat { background: #fff; border-radius: 10px; padding: 20px; text-align: center; box-shadow: 0 4px 18px rgba(15, 23, 42, .05); }
.respro-stat b { display: block; font-size: 26px; color: #007bf5; line-height: 1.2; }
.respro-stat span { display: block; margin-top: 6px; font-size: 13px; color: #94a3b8; }
.respro-log-list { list-style: none; margin: 0; padding: 0; }
.respro-log-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed #eef1f6; font-size: 13px; color: #475569; }
.respro-log-list li:last-child { border-bottom: 0; }
.respro-log-list li span { flex: 1; }
.respro-log-list li em { font-style: normal; font-weight: 700; }
.respro-log-list li em.plus { color: #16a34a; }
.respro-log-list li em.minus { color: #ef4444; }
.respro-log-list li time { color: #94a3b8; font-size: 12px; }
.respro-empty { padding: 30px 0; margin: 0; text-align: center; color: #94a3b8; }

.respro-package-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.respro-package { position: relative; display: block; padding: 16px; border-radius: 8px; border: 1px solid #e2e8f0; cursor: pointer; text-align: center; }
.respro-package input { position: absolute; opacity: 0; }
.respro-package span { display: block; font-size: 14px; color: #475569; }
.respro-package span b { font-size: 22px; color: #007bf5; }
.respro-package em { display: block; margin-top: 6px; font-style: normal; font-size: 13px; color: #94a3b8; }
.respro-package:has(input:checked) { border-color: #007bf5; box-shadow: 0 0 0 2px rgba(0, 123, 245, .12); }
.respro-inline-form { display: flex; gap: 10px; }
.respro-inline-form input { flex: 1; height: 40px; padding: 0 14px; border: 1px solid #e2e8f0; border-radius: 6px; outline: none; }
.respro-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 20px; border: 1px solid #e2e8f0; border-radius: 6px; background: #fff; color: #475569; font-size: 14px; cursor: pointer; }
.respro-btn-primary { border-color: #007bf5; background: #007bf5; color: #fff; }
.respro-btn-primary:hover { filter: brightness(.94); color: #fff; }
.respro-btn-ghost { height: 32px; padding: 0 12px; font-size: 12px; }
.respro-btn-disabled { border-color: #e2e8f0; background: #f1f5f9; color: #94a3b8; cursor: default; }
.respro-sign-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.respro-sign-grid span { padding: 8px 4px; border-radius: 6px; background: #f2f7ff; color: #007bf5; font-size: 12px; text-align: center; }

.respro-fav-list { display: flex; flex-direction: column; gap: 12px; }
.respro-fav-item { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 10px; padding: 12px; box-shadow: 0 4px 18px rgba(15, 23, 42, .05); }
.respro-fav-img { width: 120px; height: 76px; flex: none; border-radius: 6px; overflow: hidden; background: #f2f6fc; }
.respro-fav-img img { width: 100%; height: 100%; object-fit: cover; }
.respro-fav-body { flex: 1; min-width: 0; }
.respro-fav-body h3 { margin: 0 0 6px; font-size: 15px; }
.respro-fav-body h3 a { color: #1f2937; }
.respro-fav-body span { font-size: 12px; color: #94a3b8; }
.respro-follow-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.respro-follow-item { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 10px; padding: 14px; box-shadow: 0 4px 18px rgba(15, 23, 42, .05); }
.respro-follow-item img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.respro-follow-item div { flex: 1; min-width: 0; }
.respro-follow-item h3 { margin: 0 0 4px; font-size: 14px; color: #1f2937; }
.respro-follow-item p { margin: 0; font-size: 12px; color: #94a3b8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.respro-table-wrap { overflow-x: auto; background: #fff; border-radius: 10px; box-shadow: 0 4px 18px rgba(15, 23, 42, .05); }
.respro-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.respro-table th, .respro-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid #eef1f6; white-space: nowrap; }
.respro-table th { color: #64748b; font-weight: 600; background: #f8fafc; }
.respro-table td { color: #475569; }
.respro-status { display: inline-block; padding: 2px 9px; border-radius: 999px; background: #f1f5f9; color: #64748b; font-size: 12px; }
.respro-status-paid, .respro-status-done { background: #dcfce7; color: #15803d; }
.respro-status-pending { background: #fef3c7; color: #b45309; }
.respro-status-rejected { background: #fee2e2; color: #b91c1c; }
.respro-invite-link { display: flex; gap: 10px; margin-bottom: 12px; }
.respro-invite-link input { flex: 1; height: 40px; padding: 0 14px; border: 1px solid #e2e8f0; border-radius: 6px; background: #f8fafc; color: #475569; }
.respro-form { display: flex; flex-direction: column; gap: 14px; max-width: 460px; }
.respro-form label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: #64748b; }
.respro-form input { height: 42px; padding: 0 14px; border: 1px solid #e2e8f0; border-radius: 6px; outline: none; font-size: 14px; }
.respro-form input:focus { border-color: #007bf5; }

.respro-member-login { padding: 80px 0; }
.respro-member-login-card { max-width: 460px; margin: 0 auto; background: #fff; border-radius: 12px; padding: 44px 30px; text-align: center; box-shadow: 0 10px 30px rgba(15, 23, 42, .08); }
.respro-member-login-card i { font-size: 54px; color: #93c5fd; }
.respro-member-login-card h2 { margin: 16px 0 8px; font-size: 22px; color: #1f2937; }
.respro-member-login-card p { margin: 0 0 20px; color: #64748b; }

body.night .respro-member-user,
body.night .respro-member-nav,
body.night .respro-member-block,
body.night .respro-stat,
body.night .respro-fav-item,
body.night .respro-follow-item,
body.night .respro-table-wrap,
body.night .respro-member-login-card { background: #1f2329; box-shadow: 0 4px 18px rgba(0, 0, 0, .25); }
body.night .respro-member-user h3,
body.night .respro-member-head h2,
body.night .respro-member-block h3,
body.night .respro-fav-body h3 a,
body.night .respro-follow-item h3 { color: #e5e7eb; }
body.night .respro-member-nav a { color: #cbd5e1; }
body.night .respro-member-nav a:hover { background: #2a3038; }
body.night .respro-package { border-color: #334155; }
body.night .respro-inline-form input,
body.night .respro-invite-link input,
body.night .respro-form input { background: #151a20; border-color: #334155; color: #e5e7eb; }
body.night .respro-member-balance { background: #151a20; color: #cbd5e1; }
body.night .respro-sign-grid span { background: #1e293b; color: #93c5fd; }
body.night .respro-log-list li { border-bottom-color: #2c313a; color: #cbd5e1; }
body.night .respro-table th { background: #151a20; color: #94a3b8; }
body.night .respro-table td { color: #cbd5e1; border-bottom-color: #2c313a; }
body.night .respro-btn { background: #1f2329; border-color: #334155; color: #cbd5e1; }
body.night .respro-btn-primary { background: #007bf5; border-color: #007bf5; color: #fff; }

@media screen and (max-width: 1000px) {
    .respro-member { display: block; }
    .respro-member-side { width: auto; position: static; margin-bottom: 18px; }
    .respro-member-nav { display: flex; flex-wrap: wrap; gap: 6px; }
    .respro-member-nav a { flex: 1 1 30%; justify-content: center; }
    .respro-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .respro-package-list { grid-template-columns: 1fr; }
    .respro-follow-list { grid-template-columns: 1fr; }
    .respro-sign-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 分类聚合页 */
.respro-cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.respro-cat-item { background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 4px 18px rgba(15, 23, 42, .05); }
.respro-cat-item h3 { margin: 0 0 10px; font-size: 17px; }
.respro-cat-item h3 a { color: #1f2937; }
.respro-cat-item h3 em { font-style: normal; font-size: 12px; color: #94a3b8; margin-left: 6px; }
.respro-cat-item p { margin: 0 0 12px; font-size: 13px; line-height: 1.7; color: #64748b; }
.respro-cat-children { display: flex; flex-wrap: wrap; gap: 8px; }
.respro-cat-children a { padding: 5px 10px; border-radius: 999px; background: #f2f7ff; color: #007bf5; font-size: 12px; }
.respro-cat-children a span { color: #94a3b8; }
body.night .respro-cat-item { background: #1f2329; box-shadow: 0 4px 18px rgba(0, 0, 0, .25); }
body.night .respro-cat-item h3 a { color: #e5e7eb; }
body.night .respro-cat-children a { background: #1e293b; color: #93c5fd; }
@media screen and (max-width: 1100px) { .respro-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media screen and (max-width: 800px) { .respro-cat-grid { grid-template-columns: 1fr; } }

/* 积分解锁按钮 */
.respro-hide-tip .respro-unlock-btn {
    margin-left: 8px;
    padding: 6px 14px;
    border: 0;
    border-radius: 6px;
    background: #007bf5;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}
.respro-hide-tip .respro-unlock-btn:hover { filter: brightness(.94); }

/* PC 登录后用户下拉菜单 */
header .user-open .user-open-info.dag-user-menu {
    width: 260px;
    padding: 12px;
    box-sizing: border-box;
}
.dag-user-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 8px 10px;
    border-bottom: 1px solid #eef1f6;
}
.dag-user-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}
.dag-user-logout {
    flex: none;
    font-size: 12px;
    color: #94a3b8;
}
.dag-user-logout:hover { color: #007bf5; }
.dag-user-links {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}
.dag-user-links li { margin: 2px 0; }
.dag-user-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    color: #475569;
    font-size: 14px;
    line-height: 1.4;
}
.dag-user-links a:hover {
    background: #f2f7ff;
    color: #007bf5;
}
.dag-user-links i {
    width: 16px;
    text-align: center;
    color: #94a3b8;
}
.dag-user-links a:hover i { color: #007bf5; }
body.night header .user-open .user-open-info.dag-user-menu { background: #1f2329; }
body.night .dag-user-head { border-bottom-color: #2c313a; }
body.night .dag-user-name { color: #e5e7eb; }
body.night .dag-user-links a { color: #cbd5e1; }
body.night .dag-user-links a:hover { background: #2a3038; color: #4da3ff; }

@media screen and (max-width: 600px) {
    header .user-open .user-open-info:not(.dag-user-menu) {
        width: calc(100vw - 40px);
        box-sizing: border-box;
    }
}

@media screen and (max-width: 800px) {
    /* 移动端：首页友链和页脚固定在页面底部，内容不足时不往上贴 */
    body.dag-home {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    body.dag-home > section:last-of-type {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    body.dag-home .index-link {
        margin-top: auto !important;
    }

    body.dag-home > footer {
        margin-top: 24px;
    }

    /* 非首页仍然保持一致的内容间距 */
    .index-link {
        margin-top: 24px !important;
    }

    footer {
        margin-top: 24px;
    }
}

/* ------------------------------------------------------------------
 * 评论区：评论表单 + 评论列表
 * ------------------------------------------------------------------ */
.qy-comment .qy-comment-box {
    height: auto;
}

.qy-comment .b-head-img {
    display: none;
}

.qy-comment .b-box-textarea-body {
    padding: 10px;
    border-radius: 8px;
    background: #f6f6f6;
}

.qy-comment .b-box-textarea .b-box-content {
    height: 96px;
    padding: 10px 12px;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-size: 14px;
    line-height: 1.7;
}

.qy-comment .b-box-textarea .b-box-content:focus {
    box-shadow: inset 0 0 0 1px #cfe3ff;
}

.qy-comment .b-emote-submit {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: auto;
    margin-top: 10px;
    background: transparent;
}

.qy-comment .b-emote-submit .b-emote {
    position: static;
    flex: 1;
    min-width: 0;
    width: auto;
    height: auto;
}

.qy-comment .b-emote-submit li.b-emote .code {
    display: flex;
    align-items: center;
    gap: 8px;
    float: none;
    width: auto;
    margin-top: 0;
}

.qy-comment .b-emote-submit li.b-emote .code .input-val {
    flex: 1;
    min-width: 0;
    width: auto;
    height: 34px;
    margin-left: 0;
    padding: 0 10px;
    border: 1px solid #e5eaf2;
    border-radius: 5px;
    background: #fff;
    color: #555;
    font-size: 13px;
    line-height: 34px;
    box-sizing: border-box;
}

.qy-comment .b-emote-submit .b-submit-button {
    position: static;
    width: auto;
    height: auto;
    flex: 0 0 88px;
}

.qy-comment .b-emote-submit .b-submit-button input {
    position: static;
    right: auto;
    bottom: auto;
    width: 88px;
    height: 34px;
    border-radius: 5px;
    background-color: #007bf5;
    color: #fff;
    font-size: 14px;
    line-height: 34px;
}

.qy-comment .b-emote-submit .b-submit-button input:hover {
    background-color: #0672e0;
}

.qy-comment .b-clear-float {
    display: none;
}

.qy-comment-list {
    margin-top: 6px;
}

.qy-comment-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #f1f1f1;
}

.qy-comment-item:first-child {
    padding-top: 12px;
}

.qy-comment-item .qy-avatar {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    background: #f2f5f9;
}

.qy-comment-item .qy-body {
    flex: 1;
    min-width: 0;
}

.qy-comment-item .qy-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    line-height: 1.4;
}

.qy-comment-item .qy-meta b {
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.qy-comment-item .qy-meta span {
    color: #999;
    font-size: 12px;
}

.qy-role {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 20px;
    padding: 0 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    line-height: 20px;
    white-space: nowrap;
}

.qy-role svg {
    width: 11px;
    height: 11px;
    fill: currentColor;
    stroke: none;
}

.qy-role-owner {
    border: 1px solid #f1c84b;
    background: linear-gradient(135deg, #fff3cf, #ffd666);
    color: #9a6500;
}

body.night .qy-role-owner {
    border-color: #7a5b12;
    background: #4a3a12;
    color: #ffd24a;
}

.qy-comment-item .qy-reply-btn {
    margin-left: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #007bf5;
    font-size: 12px;
    line-height: 1.4;
    cursor: pointer;
}

.qy-comment-item .qy-reply-btn:hover {
    text-decoration: underline;
}

.respro-reply-tip {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 9px;
    padding: 8px 12px;
    border-radius: 6px;
    background: #eef6ff;
    color: #2563eb;
    font-size: 13px;
}

.respro-reply-tip.show {
    display: flex;
}

.respro-reply-tip b {
    font-weight: 600;
}

.respro-reply-tip a {
    color: #007bf5;
}

body.night .respro-reply-tip {
    background: #1e2a3a;
    color: #8ab4f8;
}

.respro-comment-as {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 34px;
    padding: 0 4px;
    color: #64748b;
    font-size: 13px;
}

.respro-comment-as b {
    color: #334155;
    font-weight: 600;
}

.respro-notify {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 0;
    padding-left: 2px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
    cursor: pointer;
    user-select: none;
}

.respro-notify input {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: #007bf5;
    cursor: pointer;
}

body.night .respro-comment-as,
body.night .respro-notify {
    color: #a8b0bd;
}

body.night .respro-comment-as b {
    color: #e5e7eb;
}

.qy-comment-item .qy-text {
    color: #555;
    font-size: 14px;
    line-height: 1.8;
    word-break: break-word;
}

.qy-comment-item .qy-text p {
    margin: 0 0 6px;
}

.qy-comment-child {
    margin: 8px 0 0 54px;
    padding: 12px 14px;
    border-bottom: 0;
    border-radius: 8px;
    background: #f8fafc;
}

.qy-comment-child .qy-avatar {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
}

.qy-comment-pages {
    margin-top: 16px;
    text-align: center;
}

body.night .qy-comment-item {
    border-bottom-color: #2c313a;
}

body.night .qy-comment-item .qy-meta b {
    color: #e5e7eb;
}

body.night .qy-comment-item .qy-text {
    color: #c0c4cc;
}

body.night .qy-comment-child {
    background: #24282f;
}

body.night .qy-comment .b-box-textarea-body {
    background: #2a2d33;
}

body.night .qy-comment .b-box-textarea .b-box-content,
body.night .qy-comment .b-emote-submit li.b-emote .code .input-val {
    border-color: #3a3f48;
    background: #1f2329;
    color: #d7dbe2;
}

@media screen and (max-width: 600px) {
    .qy-comment .b-emote-submit {
        flex-direction: column;
        align-items: stretch;
    }

    .qy-comment .b-emote-submit li.b-emote .code {
        flex-direction: column;
        align-items: stretch;
    }

    .qy-comment .b-emote-submit .b-submit-button {
        flex-basis: auto;
    }

    .qy-comment .b-emote-submit .b-submit-button input {
        width: 100%;
    }

    .qy-comment-item {
        gap: 10px;
    }

    .qy-comment-item .qy-avatar {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }

    .qy-comment-child {
        margin-left: 0;
        padding: 10px;
    }
}
