.bd-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 32px 24px 80px;
    min-height: 60vh;
}

/* ========== 上半部分: 标题区 ========== */
.bd-header {
    background: #fff;
    border-radius: 12px;
    padding: 32px 40px;
    margin-bottom: 0;
    border: 1px solid #ececec;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none;
}

.bd-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #8a8f98;
    text-decoration: none;
    margin-bottom: 24px;
    transition: color 0.2s ease;
}

.bd-back-link:hover {
    color: #D72951;
}

.bd-back-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8f98' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='19' y1='12' x2='5' y2='12'/><polyline points='12 19 5 12 12 5'/></svg>");
    background-size: contain;
    background-repeat: no-repeat;
    transition: background-image 0.2s ease;
}

.bd-back-link:hover .bd-back-icon {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D72951' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='19' y1='12' x2='5' y2='12'/><polyline points='12 19 5 12 12 5'/></svg>");
}

.bd-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.35;
    color: #2c3e50;
    margin: 0 0 20px;
    word-break: break-word;
}

.bd-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #8a8f98;
    margin-bottom: 20px;
}

.bd-date,
.bd-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bd-meta-divider {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #d9d9d9;
}

.bd-icon-cal {
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8f98' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='18' rx='2' ry='2'/><line x1='16' y1='2' x2='16' y2='6'/><line x1='8' y1='2' x2='8' y2='6'/><line x1='3' y1='10' x2='21' y2='10'/></svg>");
    background-size: contain;
    background-repeat: no-repeat;
}

.bd-icon-type {
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8f98' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/><polyline points='14 2 14 8 20 8'/></svg>");
    background-size: contain;
    background-repeat: no-repeat;
}

.bd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bd-tag {
    display: inline-block;
    background: #FFF0F3;
    color: #D72951;
    font-size: 13px;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.bd-tag:hover {
    background: #FFE8ED;
}

/* ========== 横线分隔 ========== */
.bd-divider {
    height: 1px;
    background: #ececec;
    margin: 0;
}

/* ========== 下半部分: 内容区 ========== */
.bd-content {
    background: #fff;
    border-radius: 12px;
    padding: 32px 40px 48px;
    border: 1px solid #ececec;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top: none;
}

/* ---- 富文本样式 ---- */
.bd-article {
    font-size: 16px;
    line-height: 1.8;
    color: #3c4858;
    word-break: break-word;
}

.bd-article h1,
.bd-article h2,
.bd-article h3,
.bd-article h4,
.bd-article h5,
.bd-article h6 {
    color: #2c3e50;
    margin-top: 28px;
    margin-bottom: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.bd-article h1 { font-size: 26px; }
.bd-article h2 { font-size: 22px; }
.bd-article h3 { font-size: 19px; }
.bd-article h4 { font-size: 17px; }

.bd-article p {
    margin: 14px 0;
}

.bd-article img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
    display: block;
}

.bd-article a {
    color: #D72951;
    text-decoration: none;
    border-bottom: 1px solid rgba(215, 41, 81, 0.3);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.bd-article a:hover {
    color: #B81E44;
    border-bottom-color: #B81E44;
}

.bd-article ul,
.bd-article ol {
    margin: 14px 0;
    padding-left: 28px;
}

.bd-article li {
    margin: 6px 0;
}

.bd-article blockquote {
    margin: 20px 0;
    padding: 14px 20px;
    background: #f7f9fc;
    border-left: 4px solid #D72951;
    border-radius: 0 6px 6px 0;
    color: #5a6275;
    font-style: italic;
}

.bd-article code {
    background: #f4f6fb;
    color: #d6336c;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: Consolas, Monaco, 'Courier New', monospace;
    font-size: 0.9em;
}

.bd-article pre {
    background: #1f2937;
    color: #e5e7eb;
    padding: 18px 22px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.bd-article pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    font-size: 14px;
    line-height: 1.6;
}

.bd-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.bd-article table th,
.bd-article table td {
    padding: 10px 14px;
    border: 1px solid #e4e7ed;
    text-align: left;
}

.bd-article table th {
    background: #f7f9fc;
    font-weight: 600;
    color: #2c3e50;
}

.bd-article hr {
    border: none;
    height: 1px;
    background: #e4e7ed;
    margin: 24px 0;
}

/* ---- 视频区样式 ---- */
.bd-video-box {
    width: 100%;
}

.bd-video-iframe {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.bd-video-iframe-short {
    padding-top: min(177.78%, 80vh);
}

.bd-video-iframe iframe,
.bd-video-iframe embed,
.bd-video-iframe object {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.bd-video-player {
    width: 100%;
    max-height: 540px;
    background: #000;
    border-radius: 10px;
    display: block;
}

.bd-video-empty {
    text-align: center;
    padding: 80px 20px;
    background: #f7f9fc;
    border-radius: 10px;
    color: #8a8f98;
}

.bd-empty-icon {
    display: block;
    font-size: 56px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* ========== 404 样式 ========== */
.bd-not-found {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #ececec;
}

.bd-not-found-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.bd-not-found-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px;
}

.bd-not-found-text {
    font-size: 14px;
    color: #8a8f98;
    margin: 0 0 24px;
}

.bd-not-found-btn {
    display: inline-block;
    padding: 10px 28px;
    background: linear-gradient(135deg, #D72951 0%, #B81E44 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bd-not-found-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(215, 41, 81, 0.35);
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .bd-wrapper { padding: 20px 14px 60px; }
    .bd-header { padding: 20px 20px 24px; }
    .bd-content { padding: 24px 20px 32px; }
    .bd-title { font-size: 22px; margin-bottom: 16px; }
    .bd-article { font-size: 15px; line-height: 1.7; }
    .bd-article h1 { font-size: 22px; }
    .bd-article h2 { font-size: 19px; }
    .bd-article h3 { font-size: 17px; }
    .bd-meta { font-size: 12px; gap: 10px; margin-bottom: 16px; }
    .bd-tag { font-size: 12px; padding: 4px 10px; }
}