/* 题库列表 — 对齐 home / tiku / collection */
:root {
    --ps-bg: #f5f7fb;
    --ps-surface: #ffffff;
    --ps-text: #1f2329;
    --ps-text-2: #646a73;
    --ps-text-3: #8f959e;
    --ps-line: #eef0f3;
    --ps-primary: #1677ff;
    --ps-primary-soft: #e8f3ff;
    --ps-primary-hover: #0f66e0;
    --ps-radius: 14px;
    --ps-shadow: 0 1px 2px rgba(31, 35, 41, 0.04), 0 12px 28px rgba(31, 35, 41, 0.06);
}

body:has(.ps-wrap) {
    background: var(--ps-bg);
}

.ps-wrap {
    min-height: calc(100vh - 120px);
    padding-bottom: 56px;
    background:
        radial-gradient(1100px 280px at 14% -50px, rgba(22, 119, 255, 0.10), transparent 58%),
        radial-gradient(900px 240px at 92% 0, rgba(14, 165, 233, 0.07), transparent 55%),
        var(--ps-bg);
}

.ps-page {
    max-width: 1250px;
    margin: 0 auto;
    padding: 28px 16px 0;
    color: var(--ps-text);
}

.ps-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    padding: 40px 40px 36px;
    border-radius: 18px;
    color: #fff;
    background: #071a3a;
    box-shadow: 0 18px 40px rgba(11, 60, 140, 0.22);
}

.ps-hero-media {
    position: absolute;
    inset: 0;
    background: url("/assets/img/tiku-banner.svg") center right / cover no-repeat;
    transform: scale(1.03);
    pointer-events: none;
}

.ps-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(4, 18, 48, 0.94) 0%, rgba(6, 28, 68, 0.82) 52%, rgba(10, 70, 150, 0.28) 100%);
    pointer-events: none;
}

.ps-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 640px;
}

.ps-eyebrow {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 450;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.55);
}

.ps-title {
    margin: 0 0 10px;
    font-size: 34px;
    font-weight: 750;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: #fff;
}

.ps-desc {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

.ps-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.ps-hero-meta span {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 12px;
    font-weight: 400;
}

.ps-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
    padding: 14px 16px;
    background: var(--ps-surface);
    border: 1px solid var(--ps-line);
    border-radius: var(--ps-radius);
    box-shadow: var(--ps-shadow);
}

.ps-filter input,
.ps-filter select {
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--ps-line);
    border-radius: 10px;
    background: #fff;
    color: var(--ps-text);
    font-size: 14px;
    outline: none;
}

.ps-filter input {
    flex: 1 1 240px;
    min-width: 180px;
}

.ps-filter select {
    min-width: 120px;
}

.ps-filter input:focus,
.ps-filter select:focus {
    border-color: rgba(22, 119, 255, 0.45);
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}

.ps-filter button {
    height: 38px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: var(--ps-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 450;
    cursor: pointer;
}

.ps-filter button:hover {
    background: var(--ps-primary-hover);
}

.ps-filter-reset {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid var(--ps-line);
    color: var(--ps-text-2) !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 400;
    background: #fff;
}

.ps-filter-reset:hover {
    border-color: rgba(22, 119, 255, 0.35);
    color: var(--ps-primary) !important;
    background: var(--ps-primary-soft);
}

.ps-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.ps-tag {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--ps-line);
    color: var(--ps-text-2) !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 400;
}

.ps-tag:hover,
.ps-tag.is-active {
    background: var(--ps-primary-soft);
    border-color: rgba(22, 119, 255, 0.28);
    color: var(--ps-primary) !important;
}

.ps-list {
    background: var(--ps-surface);
    border: 1px solid var(--ps-line);
    border-radius: var(--ps-radius);
    box-shadow: var(--ps-shadow);
    overflow: hidden;
}

.ps-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--ps-line);
}

.ps-list-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 750;
}

.ps-list-head span {
    font-size: 13px;
    font-weight: 400;
    color: var(--ps-text-3);
}

.ps-rows {
    display: flex;
    flex-direction: column;
}

.ps-row {
    display: grid;
    grid-template-columns: 100px minmax(0, 1.5fr) minmax(140px, 1fr) 110px 72px 28px;
    align-items: center;
    gap: 12px;
    padding: 0 22px;
    text-decoration: none !important;
    color: inherit;
}

.ps-row.is-head {
    height: 40px;
    background: #fafbfc;
    border-bottom: 1px solid var(--ps-line);
    font-size: 12px;
    font-weight: 450;
    color: var(--ps-text-3);
}

.ps-row.is-head > span:nth-child(4),
.ps-row.is-head > span:nth-child(5),
.ps-row.is-head > span:nth-child(6) {
    text-align: center;
}

.ps-row:not(.is-head) {
    min-height: 64px;
    padding-top: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ps-line);
    transition: background 0.18s ease;
}

.ps-row:not(.is-head):last-child {
    border-bottom: none;
}

.ps-row:not(.is-head):hover {
    background: var(--ps-primary-soft);
}

.ps-no {
    font-size: 13px;
    font-weight: 450;
    color: var(--ps-text-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ps-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ps-title-text {
    font-size: 14px;
    font-weight: 450;
    color: var(--ps-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ps-source {
    font-style: normal;
    font-size: 12px;
    color: var(--ps-text-3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ps-row:not(.is-head):hover .ps-title-text,
.ps-row:not(.is-head):hover .ps-no {
    color: var(--ps-primary);
}

.ps-ktags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: flex-start;
    gap: 6px;
    min-width: 0;
}

.ps-ktag {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: #f3f5f8;
    color: var(--ps-text-3);
    font-size: 11px;
    font-weight: 400;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ps-muted {
    color: var(--ps-text-3);
    font-size: 12px;
}

.ps-diff {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    box-sizing: border-box;
    width: 100%;
    max-width: 110px;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #059669;
    font-size: 12px;
    font-weight: 450;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ps-rate {
    justify-self: center;
    width: 100%;
    font-size: 13px;
    font-weight: 450;
    font-variant-numeric: tabular-nums;
    color: var(--ps-text-2);
    text-align: center;
}

.ps-rate.is-empty {
    color: var(--ps-text-3);
    font-weight: 400;
}

.ps-go {
    justify-self: center;
    color: var(--ps-text-3);
    text-align: center;
    transition: transform 0.18s ease, color 0.18s ease;
}

.ps-row:not(.is-head):hover .ps-go {
    color: var(--ps-primary);
    transform: translateX(2px);
}

.ps-empty {
    padding: 48px 20px;
    text-align: center;
}

.ps-empty strong {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
    color: var(--ps-text-2);
}

.ps-empty p {
    margin: 0;
    font-size: 14px;
    color: var(--ps-text-3);
}

.ps-pager {
    margin-top: 24px;
    text-align: center;
}

.ps-pager .pagination {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ps-pager .pagination > li {
    display: inline-block;
}

.ps-pager .pagination > li > a,
.ps-pager .pagination > li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid var(--ps-line);
    background: #fff;
    color: var(--ps-text-2);
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 400;
}

.ps-pager .pagination > li > a:hover {
    border-color: rgba(22, 119, 255, 0.35);
    color: var(--ps-primary);
    background: var(--ps-primary-soft);
}

.ps-pager .pagination > .active > a,
.ps-pager .pagination > .active > span {
    background: var(--ps-primary);
    border-color: var(--ps-primary);
    color: #fff;
}

.ps-pager .pagination > .disabled > a,
.ps-pager .pagination > .disabled > span {
    opacity: 0.45;
    pointer-events: none;
}

@media (max-width: 991px) {
    .ps-hero {
        padding: 32px 24px 28px;
    }

    .ps-title {
        font-size: 28px;
    }

    .ps-row.is-head {
        display: none;
    }

    .ps-row:not(.is-head) {
        grid-template-columns: minmax(0, 1fr) 28px;
        padding: 14px 16px;
    }

    .ps-no,
    .ps-ktags,
    .ps-diff,
    .ps-rate {
        display: none;
    }
}

@media (max-width: 640px) {
    .ps-page {
        padding-top: 20px;
    }

    .ps-hero {
        padding: 24px 20px 22px;
        border-radius: 14px;
    }

    .ps-title {
        font-size: 24px;
    }

    .ps-filter {
        padding: 12px;
    }

    .ps-filter input,
    .ps-filter select,
    .ps-filter button,
    .ps-filter-reset {
        width: 100%;
    }
}
