.resource-detail {
    padding: 2rem 0 5rem;
    background: linear-gradient(180deg, #fff9fb 0%, #ffffff 100%);
}

.resource-detail .article {
    max-width: 940px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 24px 48px rgba(20, 23, 38, 0.08);
}

.resource-detail .article-header {
    padding: 2.2rem 2.3rem 1.8rem;
    text-align: center;
    background: linear-gradient(135deg, #1c2238 0%, #ff6b98 100%);
    color: #ffffff;
}

.resource-detail .resource-type {
    display: inline-flex;
    margin-bottom: 0.9rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
}

.resource-detail .article-title {
    margin-bottom: 1rem;
    font-size: 2.2rem;
    line-height: 1.25;
}

.resource-detail .article-meta {
    color: rgba(255, 255, 255, 0.84);
}

.resource-detail .article-image img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

.resource-detail .article-content {
    padding: 2rem;
    color: var(--text-color);
    font-size: 1.04rem;
    line-height: 1.95;
}

.resource-detail .article-content p {
    margin-bottom: 1.2rem;
}

.resource-detail .article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    margin: 1.5rem 0;
}

.resource-detail .related-resources {
    margin: 0 2rem 2rem;
    padding: 1.8rem;
    border-radius: 26px;
    background: #fff8fb;
}

.resource-detail .related-title {
    margin-bottom: 1.3rem;
    font-size: 1.5rem;
    text-align: center;
    color: #1c2238;
}

.resource-detail .resources-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.resource-detail .resource-item {
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(20, 23, 38, 0.06);
}

.resource-detail .resource-image {
    position: relative;
}

.resource-detail .resource-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.resource-detail .resource-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 23, 38, 0.35);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.resource-detail .resource-item:hover .resource-overlay {
    opacity: 1;
}

.resource-detail .view-more {
    display: inline-flex;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    border: 1px solid #ffffff;
    color: #ffffff;
    text-decoration: none;
}

.resource-detail .resource-content {
    padding: 1.2rem;
}

.resource-detail .resource-content .resource-type {
    margin-bottom: 0.7rem;
    background: rgba(255, 107, 152, 0.1);
    color: var(--primary-color);
}

.resource-detail .resource-title {
    margin-bottom: 0.7rem;
    font-size: 1.08rem;
}

.resource-detail .resource-title a {
    color: #1c2238;
    text-decoration: none;
}

.resource-detail .resource-meta {
    color: #707894;
    font-size: 0.9rem;
}

.resource-detail .article-actions {
    margin-top: 2rem;
    text-align: center;
}

.resource-detail .btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(17, 25, 40, 0.08);
    color: #3d455e;
    text-decoration: none;
    font-weight: 600;
}

.resource-detail .btn-back:hover {
    color: var(--primary-color);
    border-color: rgba(255, 107, 152, 0.28);
}

.resource-detail .icon-back {
    width: 1rem;
    height: 1rem;
    position: relative;
}

.resource-detail .icon-back::before {
    content: '';
    position: absolute;
    inset: 0;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

@media (max-width: 900px) {
    .resource-detail .resources-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .resource-detail {
        padding: 1rem 0 4rem;
    }

    .resource-detail .article {
        border-radius: 22px;
    }

    .resource-detail .article-header,
    .resource-detail .article-content {
        padding-left: 1.3rem;
        padding-right: 1.3rem;
    }

    .resource-detail .article-title {
        font-size: 1.9rem;
    }

    .resource-detail .related-resources {
        margin: 0 1.3rem 1.3rem;
        padding: 1.3rem;
    }
}
