/**
 * 博客文章详情页 - 新版设计（与旧版 article-* 完全不同）
 * 无大卡片、琥珀金主题、编辑式排版
 */
:root {
    --blog-accent: #d4af37;
    --blog-accent-soft: rgba(212, 175, 55, 0.12);
    --blog-accent-border: rgba(212, 175, 55, 0.35);
}

/* ========== 页面与头部 ========== */
#blog-detail-page {
    padding-top: 6rem;
    padding-bottom: 6rem;
    position: relative;
    z-index: 2;
}

.blog-detail-inner {
    max-width: 52rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* 面包屑：更紧凑，金线 */
.blog-breadcrumb {
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-breadcrumb a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-breadcrumb a:hover {
    color: var(--blog-accent);
}

.blog-breadcrumb .current {
    color: var(--blog-accent);
}

.blog-breadcrumb .sep {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.5rem;
}

/* 文章头部：无大图，仅标题 + 元信息 */
.blog-detail-header {
    margin-bottom: 2.5rem;
}

.blog-detail-tag {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--blog-accent);
    margin-bottom: 1rem;
}

.blog-detail-title {
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: #fff;
    margin: 0 0 1rem 0;
}

.blog-detail-title .highlight {
    color: var(--blog-accent);
    background: linear-gradient(180deg, #fff 0%, #e5e5e5 40%, var(--blog-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.05em;
}

.blog-detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.blog-detail-meta i {
    color: var(--blog-accent);
    opacity: 0.9;
    font-size: 0.7rem;
}

@media (min-width: 768px) {
    .blog-detail-title { font-size: 2.75rem; }
}

/* ========== 引言（居中金引号） ========== */
.blog-lead {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 1.75rem 1.5rem;
    position: relative;
}

.blog-lead::before {
    content: '"';
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    color: var(--blog-accent);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.blog-lead p {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.75);
    font-style: italic;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .blog-lead { padding: 2rem 2.5rem; }
    .blog-lead p { font-size: 1.25rem; }
}

/* ========== 正文区块 ========== */
.blog-content {
    font-size: 1.0625rem;
    line-height: 1.8;
}

.blog-section {
    margin-bottom: 2.5rem;
}

.blog-section:last-child { margin-bottom: 0; }

/* 小节标题：左侧金竖线，无数字块 */
.blog-section-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-left: 1rem;
    border-left: 3px solid var(--blog-accent);
}

.blog-section-head h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .blog-section-head h2 { font-size: 1.5rem; }
}

.blog-body p {
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.8;
}

.blog-body p:last-child { margin-bottom: 0; }

.blog-body strong {
    color: var(--blog-accent);
    font-weight: 700;
}

.blog-body strong.text-white { color: #fff; }

/* ========== 特性卡片（横向列表，左金线） ========== */
.blog-feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.25rem;
}

@media (min-width: 640px) {
    .blog-feature-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}

.blog-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1rem 1.25rem 0;
    border-radius: 0 12px 12px 0;
    border-left: 3px solid var(--blog-accent-border);
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.2s, background 0.2s;
}

.blog-feature-item:hover {
    border-left-color: var(--blog-accent);
    background: var(--blog-accent-soft);
}

.blog-feature-item .icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 8px;
    background: var(--blog-accent-soft);
    color: var(--blog-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.blog-feature-item h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.blog-feature-item p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.5);
}

/* ========== 表格 ========== */
.blog-table-wrap {
    margin-top: 1rem;
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.blog-table-wrap thead th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blog-accent);
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-table-wrap tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.2s;
}

.blog-table-wrap tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.blog-table-wrap tbody tr:last-child { border-bottom: none; }

.blog-table-wrap tbody td {
    padding: 0.875rem 1rem;
    color: rgba(255, 255, 255, 0.85);
}

.blog-table-wrap tbody td:first-child { font-weight: 600; color: #fff; }

.blog-table-wrap .cell-highlight {
    color: var(--blog-accent);
    font-weight: 700;
}

.blog-table-wrap tbody td:last-child {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* ========== 提示行（单行强调） ========== */
.blog-tip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    background: var(--blog-accent-soft);
    border: 1px solid var(--blog-accent-border);
}

.blog-tip i {
    flex-shrink: 0;
    color: var(--blog-accent);
    font-size: 1rem;
}

.blog-tip span {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* ========== 左右对比块 ========== */
.blog-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-top: 1.25rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 639px) {
    .blog-compare { grid-template-columns: 1fr; }
}

.blog-compare-col {
    padding: 1.5rem 1.25rem;
}

.blog-compare-col:first-child {
    background: rgba(255, 255, 255, 0.02);
}

.blog-compare-col:last-child {
    background: var(--blog-accent-soft);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 639px) {
    .blog-compare-col:last-child { border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.06); }
}

.blog-compare-col h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
}

.blog-compare-col h4.accent { color: var(--blog-accent); }

.blog-compare-col p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.55);
}

/* ========== CTA 条 ========== */
.blog-cta {
    margin-top: 2.5rem;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blog-accent-soft) 0%, rgba(212, 175, 55, 0.04) 100%);
    border: 1px solid var(--blog-accent-border);
    text-align: center;
}

.blog-cta-label {
    display: block;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--blog-accent);
    margin-bottom: 0.5rem;
}

.blog-cta h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.blog-cta-desc {
    margin: 0 0 1.25rem 0;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

.blog-cta-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
    margin-bottom: 1.25rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-cta-benefits span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
}

.blog-cta-benefits i { color: var(--blog-accent); font-size: 0.85rem; }

.blog-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.blog-cta-actions a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.blog-cta-actions a.primary {
    background: var(--blog-accent);
    color: #000;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
}

.blog-cta-actions a.primary:hover {
    background: #e5c04a;
    box-shadow: 0 6px 24px rgba(212, 175, 55, 0.4);
    transform: scale(1.02);
}

.blog-cta-actions a.secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.blog-cta-actions a.secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ========== 悬浮 CTA 按钮 ========== */
#blog-purchase-float a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    background: var(--blog-accent);
    color: #000;
    font-size: 0.875rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

#blog-purchase-float a:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 28px rgba(212, 175, 55, 0.5);
}
