#rlzy-page {
    background: #f7f9fc;
    padding: 24px 16px 100px;
    min-height: calc(100vh - 120px);
    box-sizing: border-box;
}

#rlzy-page .rlzy-shell {
    max-width: 980px;
    margin: 0 auto;
}

#rlzy-page .rlzy-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 20px 40px rgba(18, 66, 116, 0.08);
    border: 1px solid #e9f0ff;
}

#rlzy-page .rlzy-card-header {
    border-bottom: 1px solid #e3ecff;
    padding-bottom: 14px;
    margin-bottom: 16px;
}

#rlzy-page .rlzy-title {
    font-size: 22px;
    font-weight: 600;
    color: #1b3d6d;
    margin: 0;
}

#rlzy-page .rlzy-subtitle {
    margin: 8px 0 0;
    font-size: 14px;
    color: #60789a;
    line-height: 1.6;
}

/* 分类导航：同一框内左右 20px 深蓝箭头 + 中间横向滚动 */
#rlzy-page .rlzy-category-nav {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    margin: 14px 0 10px;
    padding: 0;
    min-height: 48px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(64, 123, 255, 0.12), rgba(64, 123, 255, 0.04));
    border: 1px solid rgba(64, 123, 255, 0.14);
    box-shadow: 0 16px 30px rgba(80, 118, 180, 0.08);
    backdrop-filter: blur(6px);
}

#rlzy-page .rlzy-category-scroll-btn {
    flex: 0 0 20px;
    width: 20px;
    min-width: 20px;
    padding: 0;
    margin: 0;
    border: none;
    background: #abcdff;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, opacity 0.2s ease;
}

#rlzy-page .rlzy-category-scroll-btn:hover {
    background: #15345c;
}

#rlzy-page .rlzy-category-scroll-btn:active {
    opacity: 0.92;
}

#rlzy-page .rlzy-category-scroll-btn i {
    font-size: 11px;
    line-height: 1;
}

#rlzy-page .rlzy-category-scroll-btn--prev {
    border-radius: 18px 0 0 18px;
}

#rlzy-page .rlzy-category-scroll-btn--next {
    border-radius: 0 18px 18px 0;
}

#rlzy-page .rlzy-category-nav__scroll {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 12px 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

#rlzy-page .rlzy-category-nav__scroll::-webkit-scrollbar {
    display: none;
}

#rlzy-page .rlzy-category-item {
    appearance: none;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.72);
    color: #244775;
    font-size: 14px;
    font-weight: 600;
    padding: 11px 28px 11px 16px;
    border-radius: 16px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
    flex: 0 0 auto;
    position: relative;
    box-sizing: border-box;
}

#rlzy-page .rlzy-category-item__text {
    display: inline-block;
}

#rlzy-page .rlzy-category-item__num {
    position: absolute;
    top: 4px;
    right: 6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    background: rgba(64, 123, 255, 0.18);
    color: #1b3d6d;
    pointer-events: none;
}

#rlzy-page .rlzy-category-item.active .rlzy-category-item__num {
    background: rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

#rlzy-page .rlzy-category-item:hover {
    border-color: rgba(64, 123, 255, 0.35);
    box-shadow: 0 10px 18px rgba(64, 123, 255, 0.12);
    transform: translateY(-1px);
}

#rlzy-page .rlzy-category-item.active {
    background: #407bff;
    border-color: #407bff;
    color: #ffffff;
    box-shadow: 0 14px 26px rgba(64, 123, 255, 0.22);
}

/* sticky 时避免遮挡：给卡片顶端留一点空间 */
#rlzy-page .rlzy-card {
    scroll-margin-top: 14px;
}

/* 事项列表 */
#rlzy-page .rlzy-list-section {
    min-height: 260px;
}

#rlzy-page .rlzy-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

#rlzy-page .rlzy-list-item {
    border: 1px solid #e3ecff;
    border-radius: 16px;
    padding: 0;
    background: linear-gradient(160deg, rgba(244, 250, 255, 0.95), rgba(255, 255, 255, 0.95));
    box-shadow: 0 14px 26px rgba(43, 85, 146, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#rlzy-page .rlzy-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(43, 85, 146, 0.10);
}

#rlzy-page .rlzy-item-left {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
    padding: 14px 16px;
}

#rlzy-page .rlzy-item-name {
    margin: 0;
    color: #1b3d6d;
    font-size: 16px;
    font-weight: 600;
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.35;
}

#rlzy-page .rlzy-item-desc {
    margin: 4px 0 0;
    color: #60789a;
    font-size: 13px;
    line-height: 1.6;
    text-indent: 2em;
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

#rlzy-page .rlzy-item-action {
    width: 20%;
    min-width: 64px;
    max-width: 120px;
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: rgba(95, 120, 155, 1);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    padding: 10px 10px;
    border-radius: 0 16px 16px 0;
    background: #E9F1FF;
    border: none;
    flex: 0 0 auto;
    position: relative;
    overflow: hidden;
    transition: color 0.2s ease;
}

#rlzy-page .rlzy-item-action i {
    color: inherit;
}

#rlzy-page .rlzy-item-action-text {
    display: none;
}

#rlzy-page .rlzy-item-action-arrow {
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

#rlzy-page .rlzy-item-action::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #2f63d8;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease;
    z-index: 0;
}

#rlzy-page .rlzy-item-action-text,
#rlzy-page .rlzy-item-action-arrow {
    position: relative;
    z-index: 1;
}

#rlzy-page .rlzy-list-item:hover .rlzy-item-action::before {
    transform: scaleX(1);
}

#rlzy-page .rlzy-list-item:hover .rlzy-item-action {
    color: #ffffff;
}

#rlzy-page .rlzy-list-item:hover .rlzy-item-action-text {
    display: inline;
}

#rlzy-page .rlzy-empty {
    margin-top: 30px;
    text-align: center;
    color: #60789a;
    font-size: 14px;
}

#rlzy-page .rlzy-empty i {
    font-size: 36px;
    color: #9db8ff;
    margin-bottom: 12px;
}

@media (max-width: 390px) {
    #rlzy-page {
        padding: 16px 12px 90px;
    }

    #rlzy-page .rlzy-card {
        padding: 14px;
    }

    #rlzy-page .rlzy-title {
        font-size: 20px;
    }

    #rlzy-page .rlzy-category-item {
        padding: 10px 14px;
        font-size: 13px;
    }

    #rlzy-page .rlzy-item-name {
        font-size: 18px;
    }

    #rlzy-page .rlzy-list-item {
        align-items: flex-start;
        flex-direction: column;
    }

    #rlzy-page .rlzy-item-action {
        width: 100%;
        max-width: none;
        min-width: 0;
        align-self: stretch;
        border-radius: 0 0 16px 16px;
    }
}

