/* ============ Detail Page · PC ============ */
.detail-main {
    background: #FDFAF3;
    padding: 5rem 0;
}

.detail-inner {
    width: 90rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3.125rem;
}

/* ---- Article + Sidebar ---- */
.detail-article-sidebar {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 3.25rem;
}

.detail-article {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.detail-title {
    margin: 0;
    color: #212121;
    font-size: 3.75rem;
    font-weight: 700;
    line-height: 3.825rem;
    letter-spacing: -0.16875rem;
}

.detail-lead {
    margin: 0;
    color: #696663;
    font-size: 1.125rem;
    line-height: 1.85625rem;
}

.detail-cover {
    width: 100%;
    height: 28.828125rem;
    overflow: hidden;
}

.detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.detail-cover img:hover {
    transform: scale(1.03);
}

/* ---- 文章正文（articleFill 填充） ---- */
.td-content-text {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.td-content-text p {
    margin: 0;
    color: #696663;
    font-size: 1.13rem;
    line-height: 1.86rem;
}

.td-content-text h2 {
    margin: 0;
    color: #212121;
    font-size: 1.94rem;
    font-weight: 700;
    line-height: 2.223rem;
    letter-spacing: -0.058125rem;
}

.td-content-text h3 {
    margin: 0;
    color: #212121;
    font-size: 1.31rem;
    font-weight: 700;
    line-height: 2.3625rem;
}

.td-content-text img {
    max-width: 100%;
    height: 28.83rem;
}

/* ---- Sidebar ---- */
.detail-sidebar {
    width: 18.75rem;
    flex: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 4.5rem;
    align-self: flex-start;
    max-height: calc(100vh - 4.5rem);
    overflow-y: auto;
}

/* For You */
.detail-foryou {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1.0625rem;
    border-top: 0.06rem solid #212121;
}

.foryou-title {
    margin: 0;
    color: #212121;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 0.9375rem;
    letter-spacing: 0.0325rem;
}

.foryou-item {
    display: flex;
    gap: 0.875rem;
    text-decoration: none;
    color: inherit;
}

.foryou-thumb {
    width: 5.25rem;
    height: 4.25rem;
    flex: none;
    overflow: hidden;
}

.foryou-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.foryou-thumb img:hover {
    transform: scale(1.03);
}

.foryou-copy {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.foryou-cat {
    color: #77736B;
    font-size: 0.5625rem;
    font-weight: 700;
    line-height: 0.625rem;
    letter-spacing: 0.045rem;
    text-transform: uppercase;
}

.foryou-name {
    margin: 0.3125rem 0 0;
    color: #212121;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.096875rem;
}

.foryou-divider {
    height: 0;
    border-bottom: 1px solid rgba(23, 23, 21, 0.18);
}

/* Quiz Card */
.detail-quiz {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.detail-quiz-m {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.detail-quiz-swiper {
    width: 100%;
}

.detail-quiz-swiper .swiper-wrapper {
    align-items: stretch;
}

.detail-quiz-swiper .swiper-slide {
    height: auto;
    display: flex;
    align-items: stretch;
}

.quiz-card .quiz-title {
    font-weight: 400;
}

/* Quiz 卡片样式已移至 base.css（公共复用） */

/* ---- Article End ---- */
.detail-end {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.25rem;
    border-top: 1px solid #212121;
}

.detail-end-label {
    color: #77736B;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 0.75rem;
    letter-spacing: 0.05rem;
}

/* ---- More Pet Guides ---- */
.detail-more {
    display: flex;
    flex-direction: column;
}

.more-heading {
    padding-bottom: 1.0625rem;
    border-bottom: 1px solid #212121;
}

.more-title {
    margin: 0;
    color: #212121;
    font-size: 2.5rem;
    line-height: 2.5rem;
    letter-spacing: -0.1rem;
}

.more-grid {
    display: flex;
    gap: 1.875rem;
    margin-top: 1.75rem;
}

.more-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.more-cover {
    width: 100%;
    height: 17.96875rem;
    overflow: hidden;
}

.more-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.more-cover-img:hover {
    transform: scale(1.03);
}

.more-cat {
    margin-top: 1.0625rem;
    color: #77736B;
    font-size: 0.5625rem;
    font-weight: 700;
    line-height: 0.625rem;
    letter-spacing: 0.045rem;
    text-transform: uppercase;
}

.more-name {
    margin: 0.5rem 0 0;
    color: #212121;
    font-size: 1.1875rem;
    font-weight: 700;
    line-height: 1.484375rem;
}

.more-summary {
    margin: 0.625rem 0 0;
    color: #625F58;
    font-size: 0.75rem;
    line-height: 1.1625rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============ Mobile ============ */
@media (max-width: 768px) {
    .detail-main-m {
        background: #FDFAF3;
        padding: 2rem 1rem;
    }

    .detail-inner-m {
        width: 21.4375rem;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }

    .detail-article-m {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .detail-title-m {
        margin: 0;
        color: #212121;
        font-size: 1.25rem;
        font-weight: 700;
        line-height: 1.75rem;
    }

    .detail-lead-m {
        margin: 0;
        color: #4F4B44;
        font-size: 0.9375rem;
        line-height: 1.546875rem;
    }

    .detail-cover-m {
        width: 100%;
        height: 16.08125rem;
        overflow: hidden;
    }

    .detail-cover-m img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* 正文移动端 */
    .td-content-text {
        gap: 1rem;
    }

    .td-content-text p {
        font-size: 1rem;
        line-height: 1.72rem;
        color: #212121;
    }

    .td-content-text h2 {
        font-size: 1.5625rem;
        line-height: 1.796875rem;
        letter-spacing: -0.046875rem;
    }

    .td-content-text h3 {
        font-size: 1.3125rem;
        line-height: 2.2575rem;
    }

    /* Article End 移动端 */
    .detail-end-m {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 1.25rem;
        border-top: 0.06rem solid #212121;
    }

    /* Sidebar 移动端 */
    .detail-sidebar-m {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .detail-foryou-m {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #212121;
    }

    /* More Pet Guides 移动端 */
    .detail-more-m {
        display: flex;
        flex-direction: column;
    }

    .more-heading-m {
        padding-bottom: 1.0625rem;
        border-bottom: 0.06rem solid #212121;
    }

    .more-title-m {
        margin: 0;
        color: #212121;
        font-size: 1.875rem;
        line-height: 1.875rem;
        letter-spacing: -0.075rem;
        font-weight: 400;
    }

    .more-grid-m {
        display: flex;
        flex-wrap: wrap;
        gap: 1.13625rem;
        margin-top: 1.75rem;
    }

    .more-card-m {
        width: calc((100% - 1.13625rem) / 2);
        display: flex;
        flex-direction: column;
        text-decoration: none;
        color: inherit;
    }

    .more-cover-m {
        width: 100%;
        height: 6.3175rem;
        overflow: hidden;
    }

    .more-cover-img-m {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .more-name-m {
        margin: 0.36375rem 0 0;
        color: #212121;
        font-size: 0.875rem;
        font-weight: 700;
        line-height: 1.375rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}