.page-category .nav a.is-active {
    color: var(--brand);
}

.category-hero {
    position: relative;
    overflow: hidden;
    padding: 52px 0 36px;
    background:
        linear-gradient(130deg, rgba(15, 94, 115, 0.16), rgba(15, 94, 115, 0.02)),
        #f7fbfc;
    border-bottom: 1px solid #d8e5ea;
}

.category-hero.has-bg {
    background-image: var(--category-hero-image);
    background-position: center;
    background-size: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.category-hero.has-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(3, 29, 40, 0.68), rgba(3, 29, 40, 0.44));
}

.category-hero .container {
    position: relative;
    z-index: 1;
}

.category-hero h1 {
    color: var(--text-main);
    font-size: clamp(30px, 4vw, 44px);
    font-family: "Times New Roman", "Noto Serif SC", serif;
    line-height: 1.24;
    margin-bottom: 8px;
}

.category-hero p {
    color: var(--text-muted);
}

.category-hero.has-bg .section-kicker,
.category-hero.has-bg h1,
.category-hero.has-bg p {
    color: #fff;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.52);
}

.category-main {
    padding: 34px 0 56px;
}

.category-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.filter-panel {
    position: sticky;
    top: 88px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 18px;
}

.filter-toggle-btn {
    width: 100%;
    border: 1px solid #c9dde6;
    background: linear-gradient(120deg, #f4f9fb, #edf5f8);
    color: var(--text-main);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.filter-toggle-btn:hover {
    border-color: #9ec2cf;
    background: #f8fcfe;
}

.filter-toggle-btn:focus-visible {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(15, 94, 115, 0.16);
}

.filter-toggle-icon {
    transition: transform 0.2s ease;
    font-size: 15px;
    line-height: 1;
}

.filter-panel:not(.is-collapsed) .filter-toggle-icon {
    transform: rotate(180deg);
}

.filter-panel-body {
    margin-top: 12px;
    display: grid;
    gap: 12px;
}

.filter-panel-body[hidden] {
    display: none !important;
}

.filter-panel h2 {
    color: var(--text-main);
    font-size: 22px;
    margin-bottom: 4px;
}

.filter-panel label {
    display: grid;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.filter-actions {
    margin-top: 4px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mini-news {
    margin-top: 8px;
    background: var(--panel-alt);
    border: 1px solid #d7e5ea;
    border-radius: 12px;
    padding: 14px;
}

.mini-news h3 {
    color: var(--text-main);
    font-size: 16px;
    margin-bottom: 6px;
}

.mini-news p {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 10px;
}

.mini-news a {
    color: var(--brand);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.result-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 18px;
}

.result-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 14px;
}

.result-toolbar label {
    display: grid;
    gap: 6px;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 700;
}

.result-toolbar select {
    min-width: 170px;
}

.result-count {
    color: var(--text-main);
    font-size: 16px;
}

.result-count strong {
    color: var(--brand);
    font-size: 24px;
}

.result-sub {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 2px;
}

.active-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    min-height: 24px;
}

.active-chip {
    font-size: 12px;
    color: var(--brand-deep);
    background: #e2f0f4;
    border: 1px solid #c1dfe8;
    border-radius: 999px;
    padding: 4px 10px;
}

.page-category .cruise-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.consult-mini {
    border-top: 1px solid #d8e5ea;
    border-bottom: 1px solid #d8e5ea;
    background: linear-gradient(120deg, #f7fbfc, #edf6f9);
    padding: 40px 0;
}

.consult-mini-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.consult-mini h2 {
    color: var(--text-main);
    font-size: clamp(22px, 3vw, 30px);
    font-family: "Times New Roman", "Noto Serif SC", serif;
    max-width: 780px;
    line-height: 1.35;
}

.consult-mini-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 1100px) {
    .category-layout {
        grid-template-columns: 1fr;
    }

    .filter-panel {
        position: static;
    }

    .filter-panel-body {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: end;
    }

    .filter-panel-body h2,
    .filter-panel-body .mini-news {
        grid-column: 1 / -1;
    }

    .filter-panel-body .filter-actions {
        grid-column: span 3;
        max-width: 320px;
    }
}

@media (max-width: 860px) {
    .result-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-category .cruise-grid {
        grid-template-columns: 1fr;
    }

    .consult-mini-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ─── 瑞姐导读板块（紧凑版）────────────────────────────────────── */
.rui-editorial {
    background: #f4f9fb;
    border-top: 1px solid #cce0e8;
    border-bottom: 1px solid #cce0e8;
    padding: 20px 0;
}

.rui-editorial-inner {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

/* 左侧身份栏 */
.rui-avatar-col {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding-right: 24px;
    margin-right: 24px;
    border-right: 1px solid #cce0e8;
}

.rui-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(15, 94, 115, 0.15);
    flex-shrink: 0;
}

.rui-id {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.rui-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main);
    font-family: "Noto Serif SC", serif;
    white-space: nowrap;
}

.rui-tag {
    font-size: 11px;
    color: var(--brand);
    font-weight: 600;
    white-space: nowrap;
    opacity: 0.85;
}

/* 右侧内容区 */
.rui-content-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rui-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: 0.06em;
    margin: 0;
    opacity: 0.8;
}

.rui-title {
    font-size: clamp(15px, 1.5vw, 18px);
    font-family: "Noto Serif SC", "Times New Roman", serif;
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

/* 正文只显示第一段，最多 2 行 */
.rui-body {
    display: contents;
}

.rui-body p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rui-body p + p {
    display: none; /* 只显示第一段 */
}

/* 经典航线：水平 chips */
.rui-classics {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.rui-classics-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.rui-classics ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.rui-classics ul li {
    font-size: 12px;
    color: var(--brand-deep);
    background: rgba(15, 94, 115, 0.07);
    border: 1px solid rgba(15, 94, 115, 0.18);
    border-radius: 99px;
    padding: 3px 10px;
    white-space: nowrap;
}

/* 备注：折叠为一行小字 */
.rui-note {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.75;
}

@media (max-width: 860px) {
    .rui-editorial {
        padding: 16px 0;
    }

    .rui-avatar-col {
        padding-right: 16px;
        margin-right: 16px;
    }

    .rui-avatar {
        width: 40px;
        height: 40px;
    }

    .rui-body p {
        -webkit-line-clamp: 3;
    }

    .rui-note {
        display: none;
    }
}

@media (max-width: 560px) {
    .rui-classics ul li {
        font-size: 11px;
        padding: 2px 8px;
    }
}
/* ─── end 瑞姐导读 ─────────────────────────────────────────────── */

/* ─── end 瑞姐导读 ─────────────────────────────────────────────── */

@media (max-width: 680px) {
    .filter-panel-body {
        grid-template-columns: 1fr;
    }

    .filter-panel-body .filter-actions {
        grid-column: auto;
        max-width: none;
    }

    .result-toolbar select {
        width: 100%;
        min-width: 0;
    }
}
