/* BY_QIYE ADD 2026-05-20: collection/taotie pages, focused responsive styling. */

#nv_forum.pg_collection {
    background: var(--bg-body);
}

#nv_forum.pg_collection #ct {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

#nv_forum.pg_collection #pt {
    width: 100%;
    max-width: 1200px;
    margin: 12px auto 16px;
    padding: 12px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

#nv_forum.pg_collection #pt .z {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--text-muted);
}

#nv_forum.pg_collection #pt a {
    color: var(--primary-color);
    font-weight: 500;
}

#nv_forum.pg_collection #ct {
    margin-bottom: 48px;
}

#nv_forum.pg_collection .bm,
#nv_forum.pg_collection .tl {
    margin-bottom: 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

#nv_forum.pg_collection .bm_h,
#nv_forum.pg_collection .th {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(59,130,246,0.07), transparent);
}

#nv_forum.pg_collection .bm_h h1,
#nv_forum.pg_collection .bm_h h2 {
    margin: 0;
    color: var(--text-main);
    font-size: 1.24rem;
    line-height: 1.35;
}

#nv_forum.pg_collection .bm_c {
    padding: 20px;
}

#nv_forum.pg_collection .tb.tb_h {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-surface);
}

#nv_forum.pg_collection .tb.tb_h ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
}

#nv_forum.pg_collection .tb.tb_h li {
    float: none;
    margin: 0;
    padding: 0;
    border: 0;
}

#nv_forum.pg_collection .tb.tb_h li a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--bg-body);
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 700;
}

#nv_forum.pg_collection .tb.tb_h li.a a,
#nv_forum.pg_collection .tb.tb_h li a:hover {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
    text-decoration: none;
}

#nv_forum.pg_collection .tb.tb_h li.y.o {
    margin-left: auto;
}

#nv_forum.pg_collection .tb.tb_h li.y.o a {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
    box-shadow: 0 6px 16px rgba(59,130,246,0.22);
}

#nv_forum.pg_collection .tbmu {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 58px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-body);
    color: var(--text-muted);
}

#nv_forum.pg_collection .tbmu .y {
    margin-left: auto;
    float: none;
}

#nv_forum.pg_collection .tbmu a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--text-muted);
    font-weight: 700;
}

#nv_forum.pg_collection .tbmu a.a,
#nv_forum.pg_collection .tbmu a:hover {
    color: var(--primary-color);
    background: rgba(59,130,246,0.09);
    text-decoration: none;
}

#nv_forum.pg_collection .tbmu .pipe {
    display: none;
}

#nv_forum.pg_collection .tbmu form {
    display: flex;
    align-items: center;
    gap: 8px;
}

#nv_forum.pg_collection .px,
#nv_forum.pg_collection .pt,
#nv_forum.pg_collection .ps,
#nv_forum.pg_collection select,
#nv_forum.pg_collection input[type="text"],
#nv_forum.pg_collection textarea {
    max-width: 100%;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-body);
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

#nv_forum.pg_collection .px:focus,
#nv_forum.pg_collection .pt:focus,
#nv_forum.pg_collection .ps:focus,
#nv_forum.pg_collection select:focus,
#nv_forum.pg_collection input[type="text"]:focus,
#nv_forum.pg_collection textarea:focus {
    border-color: var(--primary-color);
    background: var(--bg-surface);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.14);
}

#nv_forum.pg_collection .pt,
#nv_forum.pg_collection textarea {
    width: 100% !important;
    min-height: 120px;
    resize: vertical;
}

#nv_forum.pg_collection .pn,
#nv_forum.pg_collection .pnc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 18px;
    border: 1px solid var(--primary-color);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

#nv_forum.pg_collection .pn span,
#nv_forum.pg_collection .pnc span {
    color: inherit;
    font-weight: 700;
}

#nv_forum.pg_collection .clct_list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}

#nv_forum.pg_collection .clct_list .xld {
    min-height: 214px;
    padding: 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

#nv_forum.pg_collection .clct_list .xld:hover {
    transform: translateY(-2px);
    border-color: rgba(59,130,246,0.45);
    box-shadow: var(--shadow-hover);
}

#nv_forum.pg_collection .clct_list dl {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-areas: "stat title" "stat body";
    gap: 10px 16px;
    margin: 0;
}

#nv_forum.pg_collection .clct_list dd.m {
    grid-area: stat;
    float: none;
    width: 76px;
    height: 76px;
    margin: 0;
}

#nv_forum.pg_collection .clct_list dd.m a {
    display: flex;
    width: 76px;
    height: 76px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(59,130,246,0.24);
}

#nv_forum.pg_collection .clct_list dd.m strong {
    display: block;
    color: #fff !important;
    font-size: 1.32rem;
    line-height: 1.1;
}

#nv_forum.pg_collection .clct_list dd.m span {
    margin-top: 4px;
    color: rgba(255,255,255,0.9) !important;
    font-size: 0.78rem;
}

#nv_forum.pg_collection .clct_list dt {
    grid-area: title;
    min-width: 0;
    margin: 0;
    font-size: 1.06rem;
    line-height: 1.45;
}

#nv_forum.pg_collection .clct_list dt > div > a {
    color: var(--text-main);
    font-weight: 800;
}

#nv_forum.pg_collection .clct_list dt > div > a:hover {
    color: var(--primary-color);
}

#nv_forum.pg_collection .clct_list dl > dd:not(.m) {
    grid-area: body;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

#nv_forum.pg_collection .clct_list p {
    margin: 6px 0 0;
}

#nv_forum.pg_collection .ctag,
#nv_forum.pg_collection .ctag_keyword a {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    margin: 0 6px 6px 0;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(59,130,246,0.09);
    color: var(--primary-color) !important;
    font-size: 0.8rem;
    font-weight: 700;
}

#nv_forum.pg_collection .ctag_keyword {
    display: flex;
    flex-wrap: wrap;
    margin-top: 8px;
}

#nv_forum.pg_collection .ct2 {
    display: flex !important;
    gap: 24px;
    align-items: flex-start;
}

#nv_forum.pg_collection .ct2 .mn {
    flex: 1 1 auto;
    min-width: 0;
    float: none !important;
}

#nv_forum.pg_collection .ct2 .sd {
    flex: 0 0 280px;
    width: 280px;
    float: none !important;
}

#nv_forum.pg_collection .ct2 > .mn > img:first-child {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 5;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 18px;
    background: var(--bg-body);
    box-shadow: var(--shadow-sm);
}

#nv_forum.pg_collection .bml .bm_h {
    display: flex;
    align-items: center;
    gap: 14px;
}

#nv_forum.pg_collection .bml .bm_h h1,
#nv_forum.pg_collection .bml .bm_h h2 {
    flex: 1 1 auto;
    min-width: 0;
}

#nv_forum.pg_collection .clct_flw {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 4px 6px 4px 12px;
    border-radius: 999px;
    background: var(--bg-body);
}

#nv_forum.pg_collection .clct_flw strong {
    color: var(--primary-color);
    font-size: 1rem;
}

#nv_forum.pg_collection #followlink,
#nv_forum.pg_collection .clct_flw i {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--primary-color);
    color: #fff;
    font-style: normal;
    font-weight: 700;
}

#nv_forum.pg_collection .clct_ratestar {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
}

#nv_forum.pg_collection .tl .th,
#nv_forum.pg_collection .tl .bm_c {
    padding: 0;
}

#nv_forum.pg_collection .tl table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

#nv_forum.pg_collection .tl .th table {
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 700;
}

#nv_forum.pg_collection .tl td,
#nv_forum.pg_collection .tl th {
    padding: 12px 10px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    vertical-align: middle;
}

#nv_forum.pg_collection .tl th {
    color: var(--text-main);
    font-weight: 700;
    text-align: left;
}

#nv_forum.pg_collection .tl .icn {
    width: 42px;
    text-align: center;
}

#nv_forum.pg_collection .tl .o {
    width: 44px;
    text-align: center;
}

#nv_forum.pg_collection .tl .num {
    width: 76px;
    text-align: center;
}

#nv_forum.pg_collection .tl .by {
    width: 150px;
}

#nv_forum.pg_collection .tl .xst {
    display: inline-block;
    max-width: 100%;
    color: var(--text-main);
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#nv_forum.pg_collection .tfm {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 14px;
}

#nv_forum.pg_collection .tfm th {
    width: 132px;
    padding: 8px 18px 8px 0;
    color: var(--text-main);
    font-weight: 700;
    text-align: right;
    vertical-align: top;
    white-space: nowrap;
}

#nv_forum.pg_collection .tfm td {
    min-width: 0;
}

#nv_forum.pg_collection .tfm .px {
    width: min(100%, 440px);
}

#nv_forum.pg_collection .tfm .pf {
    display: block;
    width: min(100%, 440px);
    min-height: 40px;
    padding: 7px;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-body);
    color: var(--text-muted);
}

#nv_forum.pg_collection .tfm img {
    max-width: min(100%, 420px);
    height: auto;
    border-radius: var(--radius-sm);
    background: var(--bg-body);
}

#nv_forum.pg_collection .d,
#nv_forum.pg_collection .xg1 {
    color: var(--text-muted);
}

#nv_forum.pg_collection .xld.xlda dl.bbda {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 6px 14px;
    min-height: 74px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

#nv_forum.pg_collection .xld.xlda dl.bbda dd,
#nv_forum.pg_collection .xld.xlda dl.bbda dt {
    margin: 0;
}

#nv_forum.pg_collection .xld.xlda .avt img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-body);
}

#nv_forum.pg_collection .emp {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-body);
    color: var(--text-muted);
    font-weight: 700;
}

#nv_forum.pg_collection .p_pop,
#nv_forum.pg_collection .p_pof {
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md);
    background: var(--bg-surface) !important;
    box-shadow: var(--shadow-hover);
}

@media (max-width: 820px) {
    #nv_forum.pg_collection #pt,
    #nv_forum.pg_collection #ct {
        padding-left: 16px;
        padding-right: 16px;
    }

    #nv_forum.pg_collection .tb.tb_h {
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }

    #nv_forum.pg_collection .tb.tb_h::-webkit-scrollbar {
        display: none;
    }

    #nv_forum.pg_collection .tb.tb_h ul {
        flex-wrap: nowrap;
    }

    #nv_forum.pg_collection .tb.tb_h li {
        flex: 0 0 auto;
    }

    #nv_forum.pg_collection .tb.tb_h li.y.o {
        margin-left: 0;
    }

    #nv_forum.pg_collection .tbmu {
        display: block;
    }

    #nv_forum.pg_collection .tbmu .y {
        float: none;
        margin: 0 0 10px;
    }

    #nv_forum.pg_collection .tbmu form {
        width: 100%;
    }

    #nv_forum.pg_collection .tbmu .px {
        flex: 1 1 auto;
        min-width: 0;
    }

    #nv_forum.pg_collection .clct_list {
        grid-template-columns: 1fr;
    }

    #nv_forum.pg_collection .ct2 {
        display: flex !important;
        flex-direction: column !important;
    }

    #nv_forum.pg_collection .ct2 .mn,
    #nv_forum.pg_collection .ct2 .sd {
        width: 100% !important;
        flex: 1 1 auto;
    }

    #nv_forum.pg_collection .ct2 > .mn > img:first-child {
        aspect-ratio: 16 / 8;
    }

    #nv_forum.pg_collection .tl .th {
        display: none;
    }

    #nv_forum.pg_collection .tl table,
    #nv_forum.pg_collection .tl tbody,
    #nv_forum.pg_collection .tl tr,
    #nv_forum.pg_collection .tl td,
    #nv_forum.pg_collection .tl th {
        display: block;
        width: 100% !important;
    }

    #nv_forum.pg_collection .tl tr {
        padding: 14px 16px;
        border-bottom: 1px solid var(--border-color);
    }

    #nv_forum.pg_collection .tl td,
    #nv_forum.pg_collection .tl th {
        padding: 4px 0;
        border-bottom: 0;
    }

    #nv_forum.pg_collection .tl .icn,
    #nv_forum.pg_collection .tl .o {
        display: inline-block;
        width: auto !important;
        margin-right: 8px;
    }

    #nv_forum.pg_collection .tfm,
    #nv_forum.pg_collection .tfm tbody,
    #nv_forum.pg_collection .tfm tr,
    #nv_forum.pg_collection .tfm th,
    #nv_forum.pg_collection .tfm td {
        display: block;
        width: 100% !important;
    }

    #nv_forum.pg_collection .tfm th {
        padding: 0 0 8px;
        text-align: left;
        white-space: normal;
    }
}

@media (max-width: 520px) {
    #nv_forum.pg_collection #ct {
        padding-left: 0;
        padding-right: 0;
    }

    #nv_forum.pg_collection .bm,
    #nv_forum.pg_collection .tl {
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }

    #nv_forum.pg_collection .clct_list .xld {
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }

    #nv_forum.pg_collection .clct_list dl {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 8px 12px;
    }

    #nv_forum.pg_collection .clct_list dd.m,
    #nv_forum.pg_collection .clct_list dd.m a {
        width: 64px;
        height: 64px;
        border-radius: 14px;
    }
}
