/* =========================================================
   Standard List Page
========================================================= */

.standard-list-page {
    padding-top: 24px;
    padding-bottom: 40px;
}

/* =========================
   筛选区
========================= */

.standard-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 24px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.filter-input-wrap {
    flex: 1;
    min-width: 220px;
}

.filter-select-wrap {
    width: 220px;
}

.standard-filter input,
.standard-filter select {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.standard-filter input:focus,
.standard-filter select:focus {
    border-color: #1677ff;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}

.filter-btn {
    height: 40px;
    padding: 0 20px;
    border: 1px solid #1677ff;
    border-radius: 8px;
    background: #1677ff;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.filter-btn:hover {
    background: #0958d9;
    border-color: #0958d9;
}

/* =========================
   标准列表：PC 三列
========================= */

.standard-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

/* =========================
   标准卡片
========================= */

.standard-card {
    position: relative;
    display: flex;
    gap: 14px;
    min-height: 188px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.standard-card:hover {
    border-color: #1677ff;
    box-shadow: 0 10px 26px rgba(22, 119, 255, 0.12);
    transform: translateY(-2px);
}

/* =========================
   封面
========================= */

.standard-cover-box {
    flex: 0 0 120px;
    width: 120px;
}

.standard-cover {
    width: 120px;
    height: 160px;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
}

/* =========================
   内容
========================= */

.standard-info {
    flex: 1;
    min-width: 0;
}

.standard-topline {
    display: block;
    margin-bottom: 8px;
}

.standard-no {
    padding-right: 66px;
    font-size: 14px;
    font-weight: 700;
    color: #1677ff;
    line-height: 1.35;
    margin-bottom: 8px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 类型标签：右上角 */
.standard-type {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #eef6ff;
    color: #1677ff;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
}

/* 标题 */
.standard-title {
    margin: 0 0 8px;
    color: #111827;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;

    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 元信息 */
.standard-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-bottom: 0;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.45;
}

.standard-meta em {
    font-style: normal;
    color: #9ca3af;
}

/* 三列时隐藏摘要，更紧凑 */
.standard-summary {
    display: none;
}

/* =========================
   加载 / 空状态
========================= */

.standard-loading,
.standard-empty {
    grid-column: 1 / -1;
    padding: 36px 20px;
    text-align: center;
    color: #6b7280;
    background: #fff;
    border: 1px dashed #d1d5db;
    border-radius: 12px;
    font-size: 14px;
}

/* =========================
   分页
========================= */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.page-btn,
.pagination button {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-size: 14px;
    cursor: pointer;
}

.page-btn:hover,
.pagination button:hover {
    border-color: #1677ff;
    color: #1677ff;
}

.page-btn.active,
.pagination button.active {
    background: #1677ff;
    border-color: #1677ff;
    color: #fff;
}

.page-btn:disabled,
.pagination button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.page-ellipsis {
    padding: 0 6px;
    color: #9ca3af;
}

/* =========================
   中等屏幕：两列
========================= */

@media (max-width: 1200px) {

    .standard-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .standard-card {
        min-height: 178px;
        padding: 15px;
    }

    .standard-cover-box {
        flex: 0 0 112px;
        width: 112px;
    }

    .standard-cover {
        width: 112px;
        height: 150px;
    }
}

/* =========================
   平板适配
========================= */

@media (max-width: 1024px) {

    .standard-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .standard-card {
        min-height: 160px;
        padding: 13px;
        gap: 12px;
        border-radius: 12px;
    }

    .standard-cover-box {
        flex: 0 0 96px;
        width: 96px;
    }

    .standard-cover {
        width: 96px;
        height: 128px;
        border-radius: 7px;
    }

    .standard-type {
        top: 12px;
        right: 12px;
        font-size: 11px;
        padding: 2px 7px;
    }

    .standard-no {
        padding-right: 58px;
        font-size: 13px;
        margin-bottom: 6px;
    }

    .standard-title {
        font-size: 15px;
        line-height: 1.45;
        -webkit-line-clamp: 3;
    }

    .standard-meta {
        font-size: 12px;
    }
}
/* =========================
   手机适配：两列
========================= */

@media (max-width: 768px) {

    .standard-list-page {
        padding-top: 16px;
        padding-bottom: 28px;
    }

    .standard-filter {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        gap: 10px;
        margin: 18px 0 20px;
        border-radius: 10px;
    }

    .filter-input-wrap,
    .filter-select-wrap {
        width: 100%;
        min-width: 0;
    }

    .filter-btn {
        width: 100%;
    }

    .standard-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .standard-card {
        display: block;
        min-height: auto;
        padding: 10px;
        border-radius: 12px;
    }

    .standard-cover-box {
        width: 100%;
        margin-bottom: 8px;
    }

    .standard-cover {
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 4;
        object-fit: cover;
        border-radius: 8px;
    }

    .standard-info {
        width: 100%;
        min-width: 0;
    }

    .standard-topline {
        margin-bottom: 4px;
    }

    .standard-no {
        padding-right: 0;
        font-size: 12px;
        line-height: 1.35;
        margin-bottom: 4px;

        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .standard-type {
        position: static;
        display: inline-flex;
        width: fit-content;
        margin-bottom: 5px;
        font-size: 10px;
        padding: 2px 6px;
    }

    .standard-title {
        font-size: 13px;
        line-height: 1.45;
        margin-bottom: 0;

        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .standard-meta {
        display: none;
    }

    .standard-summary {
        display: none;
    }
}

/* =========================
   小屏手机：仍然两列，更紧凑
========================= */

@media (max-width: 480px) {

    .standard-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .standard-card {
        padding: 8px;
        border-radius: 10px;
    }

    .standard-cover-box {
        margin-bottom: 7px;
    }

    .standard-cover {
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 4;
        border-radius: 7px;
    }

    .standard-no {
        font-size: 11px;
    }

    .standard-title {
        font-size: 12px;
        line-height: 1.4;
        -webkit-line-clamp: 3;
    }

    .standard-type {
        font-size: 10px;
        padding: 1px 6px;
    }
}