/* --------------------------------------------------------------------------
   Archive & special pages — community, search, category, Q&A, showcase
   -------------------------------------------------------------------------- */

/* 社区动态 — page-hero 与全站默认 primary→secondary 渐变一致 */

.community-page-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.community-page-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--card-bg, #fff);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-color, #5c4033);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.community-page-chip:hover {
    border-color: color-mix(in srgb, var(--primary-color) 45%, transparent);
    color: var(--primary-color);
}

.community-page-chip.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.community-page-panel .section-header .h5 {
    margin: 0;
    font-weight: 700;
}

.community-feed {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.community-feed__item {
    background: var(--card-bg, #fff);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.community-feed__item:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08) !important;
}

.community-feed__row {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.community-feed__avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9375rem;
    flex-shrink: 0;
}

.community-feed__body {
    min-width: 0;
    flex: 1;
}

.community-feed__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    align-items: center;
    margin-bottom: 0.35rem;
}

.community-feed__author {
    font-size: 0.9375rem;
    color: var(--text-color, #5c4033);
}

.community-feed__text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-color, #2d3436);
}

.community-feed__source {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
}

.community-feed__source:hover {
    text-decoration: underline;
}

.community-page-cta {
    background: var(--card-bg, #fff);
}

.community-page-cta__icon {
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.empty-state__pet-icon {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1;
    margin-bottom: 0.75rem;
}

.pet-search-history--page {
    margin-top: 0.5rem;
}

/* 搜索无结果 / 空分类推荐 */
.search-empty-suggestions {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: var(--card-border-radius);
    background: rgba(255, 249, 240, 0.65);
    border: 1px dashed color-mix(in srgb, var(--primary-color) 20%, transparent);
}

.archive-empty-suggestions.search-empty-suggestions {
    margin-top: 1.5rem;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 0;
}

.search-suggest-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    height: 100%;
    border-radius: var(--border-radius);
    background: var(--surface-color, #fff);
    border: 1px solid rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-suggest-card:hover {
    border-color: color-mix(in srgb, var(--primary-color) 30%, transparent);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--primary-color) 10%, transparent);
    color: inherit;
}

.search-suggest-card__icon {
    font-size: 1.5rem;
    line-height: 1;
}

.search-suggest-card--category {
    align-items: center;
}

.search-suggest-card__cover {
    flex-shrink: 0;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--gray-100, #f3f4f6);
}

.search-suggest-card__cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.archive-empty-suggestions__category-grid {
    display: grid;
    grid-template-columns: repeat(var(--archive-empty-category-cols-mobile, 2), minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 992px) {
    .archive-empty-suggestions__category-grid {
        grid-template-columns: repeat(var(--archive-empty-category-cols-desktop, 2), minmax(0, 1fr));
    }
}

.archive-empty-suggestions__posts-list {
    margin-top: 0;
}

.archive-empty-suggestions__posts-list .article-list-cards {
    margin-bottom: 0;
    grid-template-columns: repeat(var(--article-list-cols-mobile, 1), minmax(0, 1fr));
}

@media (min-width: 992px) {
    .archive-empty-suggestions__posts-list .article-list-cards {
        grid-template-columns: repeat(var(--article-list-cols-desktop, 2), minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .archive-empty-suggestions__posts-list.widget-article-list--card .article-list-cards {
        grid-template-columns: repeat(var(--article-list-cols-mobile, 2), minmax(0, 1fr));
    }

    .archive-empty-suggestions__posts-list.widget-article-list--list .article-list-cards {
        grid-template-columns: repeat(var(--article-list-cols-mobile, 1), minmax(0, 1fr));
    }

    .archive-empty-suggestions__category-grid {
        grid-template-columns: repeat(var(--archive-empty-category-cols-mobile, 2), minmax(0, 1fr));
    }
}

.search-suggest-card__title {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.archive-empty-suggestions__tag-list {
    flex-wrap: wrap;
}

.pet-hot-search__count {
    margin-left: 0.35rem;
    font-size: 0.75rem;
    opacity: 0.72;
}


/* 分类子导航 */
.category-subnav {
 margin-top: 1.5rem;
 margin-bottom: 1.5rem;
}

.category-subnav__row + .category-subnav__row {
    /* border-top: 1px solid rgba(0, 0, 0, 0.05); */
}

.category-subnav__scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.category-subnav__item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    padding: 0.25rem 0.85rem;
    border-radius: 999px;
    background: var(--surface-color, #fff);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: inherit;
    text-decoration: none;
    font-size: 0.875rem;
    white-space: nowrap;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.category-subnav__item:hover {
    border-color: color-mix(in srgb, var(--primary-color) 35%, transparent);
    color: inherit;
}

.category-subnav__item.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.category-subnav__item--parent {
    background: color-mix(in srgb, var(--primary-color) 8%, transparent);
    border-color: color-mix(in srgb, var(--primary-color) 20%, transparent);
}

.category-subnav__count {
    font-size: 0.75rem;
    opacity: 0.75;
}

.category-subnav__item.is-active .category-subnav__count {
    opacity: 0.9;
}

.category-archive__article-list {
    width: 100%;
}

.category-archive--list .category-archive__article-list {
    gap: 1.5rem;
}

/* 养宠问答 — page-hero 与全站默认 primary→secondary 渐变一致 */

.qna-feed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.qna-feed__question {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.qna-feed__badge {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.qna-feed__text {
    font-size: 0.9375rem;
    line-height: 1.6;
}

.qna-feed__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
}

.qna-feed__source {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: var(--primary-color);
    text-decoration: none;
}

.qna-feed__source:hover {
    text-decoration: underline;
}

.qna-page-cta__icon {
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1;
    margin-bottom: 0.5rem;
}

/* 精选图集 — 瀑布流；page-hero 与全站默认 primary→secondary 渐变一致 */

.pet-showcase-toolbar {
    margin-bottom: 0.85rem;
}

.pet-showcase-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.pet-showcase-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: var(--surface-color, #fff);
    color: inherit;
    text-decoration: none;
    font-size: 0.8125rem;
    line-height: 1.3;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pet-showcase-chip:hover {
    border-color: color-mix(in srgb, var(--primary-color) 40%, transparent);
    color: var(--primary-color);
}

.pet-showcase-chip.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.pet-showcase-chip__count {
    opacity: 0.75;
    font-size: 0.8em;
}

.pet-showcase-sort {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.pet-showcase-sort__item {
    padding: 0.45rem 0.75rem;
    color: inherit;
    text-decoration: none;
    font-size: 0.875rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    opacity: 0.7;
}

.pet-showcase-sort__item:hover,
.pet-showcase-sort__item.is-active {
    opacity: 1;
    color: var(--primary-color);
}

.pet-showcase-sort__item.is-active {
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

/* 瀑布流 */
.pet-showcase-waterfall {
    column-count: var(--showcase-cols, 4);
    column-gap: 0.75rem;
}

.pet-showcase-card {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    display: inline-block;
    width: 100%;
    margin: 0 0 0.75rem;
    border-radius: 0.75rem;
    overflow: hidden;
    background: var(--card-bg, #fff);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    vertical-align: top;
}

.pet-showcase-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.1);
}

.pet-showcase-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    background: #f3f4f6;
    width: 100%;
}

.pet-showcase-card__cover {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    line-height: 0;
}

.pet-showcase-card__cover > .nova-image-guard,
.pet-showcase-card__media > .nova-image-guard {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    line-height: 0;
}

.pet-showcase-card__media img,
.pet-showcase-card__cover img,
.pet-showcase-card__cover > .nova-image-guard > img,
.pet-showcase-card__media > .nova-image-guard > img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.35s ease;
}

.pet-showcase-card:hover .pet-showcase-card__media img {
    transform: scale(1.03);
}

/* 用不同比例制造错落（封面图统一裁切高度） */
.pet-showcase-card__media--r0 { aspect-ratio: 3 / 4; }
.pet-showcase-card__media--r1 { aspect-ratio: 4 / 5; }
.pet-showcase-card__media--r2 { aspect-ratio: 1 / 1; }
.pet-showcase-card__media--r3 { aspect-ratio: 3 / 4.2; }
.pet-showcase-card__media--r4 { aspect-ratio: 4 / 4.6; }

.pet-showcase-card__badge,
.pet-showcase-card__tag {
    position: absolute;
    left: 0.5rem;
    top: 0.5rem;
    z-index: 1;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    line-height: 1.3;
    color: #fff;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    max-width: calc(100% - 2.75rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pet-showcase-card__badge {
    background: linear-gradient(135deg, #ff2e4d, #ff6b81);
}

.pet-showcase-card__zoom {
    position: absolute;
    right: 0.45rem;
    bottom: 0.45rem;
    z-index: 2;
    width: 1.85rem;
    height: 1.85rem;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    opacity: 0;
    cursor: zoom-in;
    transition: opacity 0.2s ease;
}

.pet-showcase-card:hover .pet-showcase-card__zoom,
.pet-showcase-card__zoom:focus-visible {
    opacity: 1;
}

.pet-showcase-card__body {
    padding: 0.65rem 0.7rem 0.75rem;
}

.pet-showcase-card__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    color: inherit;
    text-decoration: none;
    margin: 0 0 0.45rem;
}

.pet-showcase-card__title:hover {
    color: var(--primary-color);
}

.pet-showcase-card__excerpt {
    margin: -0.15rem 0 0.45rem;
    font-size: 0.75rem;
    color: var(--text-muted, #6b7280);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pet-showcase-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.pet-showcase-card__author {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.pet-showcase-card__avatar {
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #e5e7eb;
}

.pet-showcase-card__avatar--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    color: #fff;
    background: var(--primary-color);
}

.pet-showcase-card__author-name {
    font-size: 0.75rem;
    color: var(--text-muted, #6b7280);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 7rem;
}

.pet-showcase-card__engage {
    flex-shrink: 0;
}

.pet-showcase-card__like {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.75rem;
    color: var(--text-muted, #6b7280);
}

body.is-showcase-lightbox-open {
    overflow: hidden;
}

.pet-showcase-lightbox[hidden] {
    display: none !important;
}

.pet-showcase-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.pet-showcase-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
}

.pet-showcase-lightbox__dialog {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
}

.pet-showcase-lightbox__close,
.pet-showcase-lightbox__nav {
    position: absolute;
    z-index: 2;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pet-showcase-lightbox__close {
    top: -0.25rem;
    right: 0;
    transform: translateY(-100%);
}

.pet-showcase-lightbox__nav--prev {
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.pet-showcase-lightbox__nav--next {
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.pet-showcase-lightbox__nav[hidden] {
    display: none !important;
}

.pet-showcase-lightbox__figure {
    margin: 0;
    background: #111;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.pet-showcase-lightbox__image {
    display: block;
    width: 100%;
    max-height: calc(100vh - 8rem);
    object-fit: contain;
    background: #111;
}

.pet-showcase-lightbox__caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.96);
}

.pet-showcase-lightbox__title {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.pet-showcase-lightbox__title:hover {
    color: var(--primary-color);
}

.pet-showcase-lightbox__index {
    color: var(--text-muted, #6b7280);
    font-size: 0.85rem;
    white-space: nowrap;
}

@media (max-width: 1199.98px) {
    .pet-showcase-waterfall {
        column-count: 3;
    }
}

@media (max-width: 991.98px) {
    .pet-showcase-waterfall {
        column-count: 3;
    }
}

@media (max-width: 767.98px) {
    .pet-showcase-waterfall {
        column-count: 2;
        column-gap: 0.55rem;
    }

    .pet-showcase-card {
        margin-bottom: 0.55rem;
        border-radius: 0.55rem;
    }

    .pet-showcase-card__body {
        padding: 0.5rem 0.55rem 0.6rem;
    }

    .pet-showcase-card__title {
        font-size: 0.8125rem;
    }
}

@media (max-width: 399.98px) {
    .pet-showcase-waterfall {
        column-count: 2;
    }
}

.pet-showcase-card__cover--button {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

body.is-pet-moment-modal-open {
    overflow: hidden;
}

.pet-moment-modal[hidden] {
    display: none !important;
}

.pet-moment-modal {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.28s ease,
        visibility 0.28s ease;
}

.pet-moment-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.pet-moment-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.pet-moment-modal.is-open .pet-moment-modal__backdrop {
    opacity: 1;
}

.pet-moment-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100vw - 48px));
    height: calc(100vh - 48px);
    max-height: calc(100vh - 48px);
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    transition:
        opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.pet-moment-modal.is-open .pet-moment-modal__dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.pet-moment-modal__close {
    position: absolute;
    top: 0.65rem;
    right: 0.75rem;
    z-index: 3;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.pet-moment-modal__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    height: 100%;
    min-height: 0;
}

.pet-moment-modal__gallery {
    position: relative;
    align-self: stretch;
    min-height: 0;
    height: 100%;
    background: #000;
    overflow: hidden;
}

.pet-moment-modal__viewport {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    touch-action: pan-y;
}

.pet-moment-modal__track {
    display: flex;
    height: 100%;
    will-change: transform;
}

.pet-moment-modal__slide {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

.pet-moment-modal__slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

@media (prefers-reduced-motion: reduce) {
    .pet-moment-modal,
    .pet-moment-modal__backdrop,
    .pet-moment-modal__dialog,
    .pet-moment-modal__track {
        transition: none !important;
    }
}

/* 图片区域内左右箭头 */
.pet-moment-modal__nav {
    position: absolute;
    top: 50%;
    z-index: 6;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.42);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.pet-moment-modal__nav:hover {
    background: rgba(0, 0, 0, 0.62);
}

.pet-moment-modal__nav--prev { left: 0.85rem; }
.pet-moment-modal__nav--next { right: 0.85rem; }
.pet-moment-modal__nav[hidden] { display: none !important; }

.pet-moment-modal__nav span {
    display: block;
    margin-top: -2px;
}

/* 右上角图片数量 */
.pet-moment-modal__count {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 6;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 0.75rem;
    line-height: 1.3;
    pointer-events: none;
}

.pet-moment-modal__count[hidden] {
    display: none !important;
}

/* 底部指示器 */
.pet-moment-modal__dots {
    position: absolute;
    left: 50%;
    bottom: 0.9rem;
    z-index: 6;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    pointer-events: auto;
}

.pet-moment-modal__dots[hidden] {
    display: none !important;
}

.pet-moment-modal__dot {
    width: 0.4rem;
    height: 0.4rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.pet-moment-modal__dot.is-active {
    background: #fff;
    transform: scale(1.2);
}

.pet-moment-modal__side {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    background: #fff;
    color: var(--body-color, #222);
    overflow: hidden;
}

.pet-moment-modal__author {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
    padding: 1.15rem 1.15rem 0.85rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.pet-moment-modal__author img,
.pet-moment-modal__avatar-fallback {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.pet-moment-modal__avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.08);
    color: var(--body-color, #333);
    font-size: 0.9rem;
    font-weight: 700;
}

.pet-moment-modal__author-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pet-moment-modal__side-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 1rem 1.15rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.pet-moment-modal__side-scroll::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.pet-moment-modal__title {
    margin: 0 0 0.75rem;
}

.pet-moment-modal__content {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-muted, #666);
    white-space: normal;
}

.pet-moment-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-shrink: 0;
    padding: 0.85rem 1.15rem 1.05rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
}

.pet-moment-modal__like {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 0.9rem;
}

.pet-moment-modal__like.is-liked,
.pet-moment-detail__like-btn.is-liked {
    color: #ff2442;
}

.pet-moment-modal__link {
    font-size: 0.85rem;
    text-decoration: none;
}

.pet-moment-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    height: calc(100vh - 180px);
    min-height: 520px;
    max-height: 860px;
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
}

.pet-moment-detail__gallery {
    position: relative;
    min-height: 0;
    height: 100%;
    background: #000;
    overflow: hidden;
}

.pet-moment-detail__viewport {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    touch-action: pan-y;
}

.pet-moment-detail__track {
    display: flex;
    height: 100%;
    will-change: transform;
}

.pet-moment-detail__slide {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

.pet-moment-detail__slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.pet-moment-detail__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 280px;
}

.pet-moment-detail__nav {
    position: absolute;
    top: 50%;
    z-index: 6;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.42);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.pet-moment-detail__nav:hover {
    background: rgba(0, 0, 0, 0.62);
}

.pet-moment-detail__nav--prev { left: 0.85rem; }
.pet-moment-detail__nav--next { right: 0.85rem; }

.pet-moment-detail__nav span {
    display: block;
    margin-top: -2px;
}

.pet-moment-detail__count {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 6;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 0.75rem;
    line-height: 1.3;
    pointer-events: none;
}

.pet-moment-detail__dots {
    position: absolute;
    left: 50%;
    bottom: 0.9rem;
    z-index: 6;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.pet-moment-detail__dot {
    width: 0.4rem;
    height: 0.4rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.pet-moment-detail__dot.is-active {
    background: #fff;
    transform: scale(1.2);
}

.pet-moment-detail__panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    background: #fff;
    color: var(--body-color, #222);
    overflow: hidden;
}

.pet-moment-detail__author {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
    padding: 1.15rem 1.15rem 0.85rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.pet-moment-detail__avatar,
.pet-moment-detail__avatar-fallback {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.pet-moment-detail__avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.08);
    color: var(--body-color, #333);
    font-size: 0.9rem;
    font-weight: 700;
}

.pet-moment-detail__author-meta {
    min-width: 0;
}

.pet-moment-detail__author-name {
    font-weight: 600;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pet-moment-detail__cat {
    font-size: 0.8rem;
}

.pet-moment-detail__side-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 1rem 1.15rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.pet-moment-detail__side-scroll::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.pet-moment-detail__title {
    margin: 0 0 0.75rem;
}

.pet-moment-detail__content {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-muted, #666);
}

.pet-moment-detail__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-shrink: 0;
    padding: 0.85rem 1.15rem 1.05rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
}

.pet-moment-detail__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pet-moment-detail__like-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 0.9rem;
}

.pet-moment-detail__views {
    font-size: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
    .pet-moment-detail__track {
        transition: none !important;
    }
}

@media (max-width: 991.98px) {
    .pet-moment-modal {
        padding: 0;
        align-items: stretch;
    }

    .pet-moment-modal__layout,
    .pet-moment-detail {
        grid-template-columns: 1fr;
    }

    .pet-moment-modal__dialog {
        width: 100%;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 0;
        transform: translateY(24px);
    }

    .pet-moment-modal.is-open .pet-moment-modal__dialog {
        transform: translateY(0);
    }

    .pet-moment-modal__layout {
        grid-template-rows: minmax(45vh, 58vh) minmax(0, 1fr);
        height: 100%;
    }

    .pet-moment-modal__gallery {
        min-height: 45vh;
        height: auto;
    }

    .pet-moment-modal__side {
        min-height: 0;
    }

    .pet-moment-detail {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(45vh, 58vh) minmax(280px, 1fr);
        height: auto;
        min-height: 0;
        max-height: none;
    }

    .pet-moment-detail__gallery {
        min-height: 45vh;
        height: auto;
    }

    .pet-moment-detail__panel {
        min-height: 280px;
        max-height: 50vh;
    }
}

.friend-links-page-panel .card-body {
    padding: 1.25rem;
}

.friend-links-grid__col {
    flex: 0 0 auto;
    width: calc(100% / 2);
}

@media (min-width: 768px) {
    .friend-links-grid__col {
        width: calc(100% / 3);
    }
}

@media (min-width: 992px) {
    .friend-links-grid__col {
        width: calc(100% / var(--friend-links-cols, 4));
    }
}

.friend-links-card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    height: 100%;
    padding: 1rem;
    border-radius: var(--border-radius);
    background: var(--surface-color, #fff);
    border: 1px solid rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.friend-links-card:hover {
    border-color: color-mix(in srgb, var(--primary-color) 28%, transparent);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--primary-color) 10%, transparent);
    color: inherit;
    transform: translateY(-2px);
}

.friend-links-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.65rem;
    background: color-mix(in srgb, var(--primary-color) 10%, transparent);
    color: var(--primary-color);
    font-size: 1.1rem;
    overflow: hidden;
}

.friend-links-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.friend-links-card__fallback {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
}

.friend-links-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.friend-links-card__name {
    font-weight: 600;
    line-height: 1.35;
    word-break: break-word;
}

.friend-links-card__desc {
    font-size: 0.8125rem;
    color: var(--text-muted, #6c757d);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.friend-links-group__title {
    color: var(--text-muted, #6c757d);
    font-weight: 600;
}

.friend-link-apply-intro h2 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.friend-link-apply-intro ul {
    padding-left: 1.25rem;
    margin-bottom: 1.5rem;
}

.friend-link-apply-intro li + li {
    margin-top: 0.35rem;
}

.friend-links-action-btn {
    min-height: 2.75rem;
    padding: 0.625rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    /* line-height: 1.25; */
}

.friend-links-page-cta .friend-links-action-btn {
    min-width: 8.5rem;
}

/* ---- Author archive ---- */
.author-archive__posts {
    margin-top: 1.5rem;
}

.author-archive__posts-title {
    font-weight: 700;
    color: var(--text-color, #2d3436);
}

.author-profile {
    margin-top: 0;
    margin-bottom: 0;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.06));
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow, 0 1px 4px rgba(0, 0, 0, 0.04));
}

.author-profile + .author-archive__posts {
    margin-top: 1.5rem;
}

.author-profile__avatar {
    width: 88px;
    height: 88px;
}

.author-profile__avatar-img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid color-mix(in srgb, var(--primary-color) 18%, transparent);
    box-shadow: 0 4px 16px color-mix(in srgb, var(--primary-color) 12%, transparent);
}

.author-profile__header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.35rem;
}

.author-profile__name {
    margin: 0;
    font-weight: 700;
    color: var(--text-color, #2d3436);
}

.author-profile__count {
    font-size: 0.8125rem;
    color: var(--gray-500, #9ca3af);
}

.author-profile__bio {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--gray-600, #6b7280);
}

.page-hero--author.page-hero--has-cover .page-hero__content {
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

@media (max-width: 767.98px) {
    .author-profile__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-profile__header {
        justify-content: center;
    }
}
