/* === 视频嵌入容器 === */
.nordic-video-embed {
    margin: 16px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    background: #000;
}

.video-embed-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}

.video-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-embed-source {
    padding: 8px 14px;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    background: #1a1a1a;
}

.video-embed-source i {
    margin-right: 4px;
}

/* === 链接跳转卡片 === */
.nordic-link-card {
    margin: 12px 0;
    border-radius: 10px;
    border: 1px solid rgba(74,141,183,0.2);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.nordic-link-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.nordic-link-card a {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    text-decoration: none;
    color: inherit;
    background: #F6F9FC;
}

.link-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.link-card-info {
    margin-left: 14px;
    display: flex;
    flex-direction: column;
}

.link-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #5a4a3a;
}

.link-card-desc {
    font-size: 12px;
    color: #2E6E8F;
    margin-top: 2px;
}

/* 小红书特殊样式 */
.xiaohongshu-card a {
    background: linear-gradient(135deg, #FFF5F5, #F6F9FC);
}

/* === 小红书图片嵌入 === */
.nordic-xhs-embed {
    margin: 16px 0;
    border-radius: 12px;
    border: 1px solid rgba(74,141,183,0.2);
    overflow: hidden;
    background: #fff;
}
.xhs-embed-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(74,141,183,0.1);
}
.xhs-embed-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: #FF2442;
    color: #fff;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    flex-shrink: 0;
}
.xhs-embed-title {
    font-size: 14px;
    color: #5a4a3a;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 图片网格 */
.xhs-image-grid {
    display: grid;
    gap: 3px;
    padding: 3px;
}
.xhs-single {
    grid-template-columns: 1fr;
}
.xhs-grid-2 {
    grid-template-columns: 1fr 1fr;
}
.xhs-grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
}
.xhs-image-item {
    overflow: hidden;
    aspect-ratio: 1;
    background: #f5f5f5;
}
.xhs-single .xhs-image-item {
    aspect-ratio: auto;
    max-height: 500px;
}
.xhs-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.xhs-image-item img:hover {
    transform: scale(1.03);
}
.xhs-more-hint {
    padding: 8px;
    text-align: center;
    font-size: 12px;
    color: #2E6E8F;
}
.xhs-embed-footer {
    display: block;
    padding: 10px 16px;
    text-align: center;
    font-size: 13px;
    color: #FF2442;
    text-decoration: none;
    border-top: 1px solid rgba(74,141,183,0.1);
    transition: background 0.2s;
}
.xhs-embed-footer:hover {
    background: rgba(255,36,66,0.05);
}

/* 响应式 */
@media (max-width: 768px) {
    .nordic-video-embed {
        margin: 12px -8px;
        border-radius: 8px;
    }
    
    .nordic-link-card a {
        padding: 12px 14px;
    }
    .nordic-xhs-embed {
        margin: 12px -4px;
        border-radius: 8px;
    }
    .xhs-grid-3 {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .xhs-single .xhs-image-item {
        max-height: 360px;
    }
}
