/*
 * 文章详情页面样式
 */

/* ==================== 主容器 ==================== */
.vc-single-post {
    background: var(--vc-bg-light);
    padding: 30px 0 60px;
    min-height: 100vh;
}

.vc-post-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== 面包屑 ==================== */
.vc-single-post .vc-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--vc-text-light);
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.vc-single-post .vc-breadcrumb a {
    color: var(--vc-text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.vc-single-post .vc-breadcrumb a:hover {
    color: var(--vc-primary);
}

.vc-single-post .vc-breadcrumb span:last-child {
    color: var(--vc-text-dark);
    font-weight: 500;
}

.vc-single-post .vc-breadcrumb .vc-breadcrumb-current-title {
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .vc-single-post .vc-breadcrumb .vc-breadcrumb-current-title {
        max-width: 200px;
    }
}

/* ==================== 布局 ==================== */
.vc-post-layout {
    display: grid;
    grid-template-columns: 280px 1fr 380px;
    gap: 30px;
    align-items: start;
    position: relative;
}

/* ==================== 主内容区 ==================== */
.vc-post-main {
    background: var(--vc-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ==================== 左侧TOC目录导航 ==================== */
.vc-toc-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    /* 隐藏滚动条但保持滚动功能 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}

.vc-toc-sidebar::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.vc-toc-wrapper {
    background: var(--vc-white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--vc-border);
}

.vc-toc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--vc-border);
}

.vc-toc-header svg {
    color: var(--vc-primary);
    flex-shrink: 0;
}

.vc-toc-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--vc-text-dark);
    margin: 0;
}

/* 阅读进度 */
.vc-reading-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px;
    background: var(--vc-bg-light);
    border-radius: 8px;
}

.vc-progress-bar {
    flex: 1;
    height: 6px;
    background: var(--vc-border);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.vc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--vc-primary), var(--vc-primary-dark));
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
}

.vc-progress-text {
    font-size: 12px;
    font-weight: 700;
    color: var(--vc-primary);
    min-width: 35px;
    text-align: right;
}

/* 目录导航 */
.vc-toc-nav {
    margin-bottom: 15px;
}

.vc-toc-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    color: var(--vc-text-light);
    font-size: 13px;
    justify-content: center;
}

.vc-toc-loading svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.vc-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vc-toc-item {
    margin-bottom: 4px;
}

.vc-toc-link {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--vc-text-dark);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
    line-height: 1.4;
    border-left: 3px solid transparent;
}

.vc-toc-link:hover {
    background: var(--vc-bg-light);
    color: var(--vc-primary);
    padding-left: 16px;
}

.vc-toc-link.active {
    background: linear-gradient(90deg, rgba(255, 106, 0, 0.1), transparent);
    color: var(--vc-primary);
    font-weight: 600;
    border-left-color: var(--vc-primary);
    padding-left: 16px;
}

/* H3级别目录缩进 */
.vc-toc-link.vc-toc-h3 {
    padding-left: 24px;
    font-size: 13px;
}

.vc-toc-link.vc-toc-h3:hover,
.vc-toc-link.vc-toc-h3.active {
    padding-left: 28px;
}

/* 返回顶部按钮 */
.vc-toc-back-top {
    width: 100%;
    padding: 10px;
    background: var(--vc-bg-light);
    border: 1px solid var(--vc-border);
    border-radius: 8px;
    color: var(--vc-text-dark);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.vc-toc-back-top:hover {
    background: var(--vc-primary);
    color: var(--vc-white);
    border-color: var(--vc-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
}

.vc-toc-back-top svg {
    flex-shrink: 0;
}

/* ==================== 文章头部 ==================== */
.vc-post-header {
    padding: 40px 50px 30px;
    border-bottom: 1px solid var(--vc-border);
}

.vc-post-category {
    margin-bottom: 15px;
}

.vc-post-category a {
    display: inline-block;
    background: linear-gradient(135deg, var(--vc-primary), var(--vc-primary-dark));
    color: var(--vc-white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.vc-post-category a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
}

.vc-post-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--vc-text-dark);
    line-height: 1.3;
    margin: 0 0 25px 0;
}

.vc-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.vc-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vc-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.vc-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vc-author-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vc-author-name-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vc-author-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--vc-text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.vc-author-name:hover {
    color: var(--vc-primary);
}

.vc-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--vc-primary);
    background: var(--vc-white);
    border: 1px solid var(--vc-primary);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.vc-follow-btn:hover {
    background: var(--vc-primary);
    color: var(--vc-white);
    transform: translateY(-1px);
}

.vc-follow-btn.following {
    color: #666;
    border-color: #ddd;
    background: #f5f5f5;
}

.vc-follow-btn.following:hover {
    color: #dc3545;
    border-color: #dc3545;
    background: #fff5f5;
}

.vc-follow-btn svg {
    flex-shrink: 0;
}

.vc-post-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--vc-text-light);
}

.vc-post-date svg {
    flex-shrink: 0;
}

.vc-post-updated {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 12px;
    padding: 3px 10px;
    background: var(--vc-bg-light);
    border-radius: 12px;
    font-size: 12px;
    color: var(--vc-text-light);
}

.vc-post-updated.recent {
    background: linear-gradient(135deg, rgba(255, 106, 0, 0.1), rgba(255, 106, 0, 0.05));
    color: var(--vc-primary);
    font-weight: 600;
}

.vc-post-updated svg {
    flex-shrink: 0;
}

.vc-post-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}

.vc-reading-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--vc-text-light);
}

.vc-reading-time svg {
    flex-shrink: 0;
}

/* ==================== 文章内容 ==================== */
.vc-post-content {
    padding: 50px 60px;
    font-size: 17px;
    line-height: 1.8;
    color: var(--vc-text-dark);
}

/* 文章摘要 - 简约风格 */
.vc-post-summary {
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 35px;
}

.vc-post-summary-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vc-post-summary-header svg {
    color: #999;
    flex-shrink: 0;
}

.vc-post-summary-content {
    padding-left: 26px;
}

.vc-summary-main {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.6;
    color: var(--vc-text-dark);
    margin: 0 0 12px 0;
}

.vc-summary-detail {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

.vc-post-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--vc-text-dark);
    margin: 40px 0 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--vc-primary);
}

.vc-post-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--vc-text-dark);
    margin: 35px 0 18px;
}

.vc-post-content h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--vc-text-dark);
    margin: 30px 0 15px;
}

.vc-post-content p {
    margin-bottom: 20px;
}

.vc-post-content ul,
.vc-post-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.vc-post-content li {
    margin-bottom: 10px;
}

.vc-post-content a {
    color: var(--vc-primary);
    text-decoration: underline;
    transition: color 0.3s;
}

.vc-post-content a:hover {
    color: var(--vc-primary-dark);
}

.vc-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: block;
}

.vc-post-content blockquote {
    background: var(--vc-bg-light);
    border-left: 4px solid var(--vc-primary);
    padding: 20px 25px;
    margin: 30px 0;
    border-radius: 8px;
    font-style: italic;
    color: var(--vc-text-light);
}

.vc-post-content code {
    background: var(--vc-bg-light);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 15px;
    color: var(--vc-primary);
}

.vc-post-content pre {
    background: #2C2C2C;
    color: var(--vc-white);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 30px 0;
}

.vc-post-content pre code {
    background: none;
    padding: 0;
    color: var(--vc-white);
}

/* ==================== 表格样式 ==================== */
.vc-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: var(--vc-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--vc-border);
}

.vc-post-content thead {
    background: linear-gradient(135deg, var(--vc-primary), var(--vc-primary-dark));
}

.vc-post-content thead th {
    padding: 16px 20px;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: var(--vc-white);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.vc-post-content tbody tr {
    transition: all 0.3s;
    border-bottom: 1px solid var(--vc-border);
}

.vc-post-content tbody tr:last-child {
    border-bottom: none;
}

.vc-post-content tbody tr:hover {
    background: var(--vc-bg-light);
}

.vc-post-content tbody td {
    padding: 14px 20px;
    font-size: 15px;
    color: var(--vc-text-dark);
    line-height: 1.6;
}

.vc-post-content tbody td:first-child {
    font-weight: 600;
    color: var(--vc-text-dark);
}

/* 强调行样式（如总计行） */
.vc-post-content tbody tr:has(td strong:first-child) {
    background: var(--vc-bg-light);
    font-weight: 600;
}

/* ==================== 覆盖 AI 生成的深色表格内联样式（旧文章） ==================== */
/* AI 按旧提示词在 tr/td 上写了内联深色样式，优先级高于主题样式，必须 !important 强制覆盖回浅色主题 */
.vc-post-content table th {
    background: linear-gradient(135deg, var(--vc-primary), var(--vc-primary-dark)) !important;
    color: var(--vc-white) !important;
}
.vc-post-content table td {
    background-color: var(--vc-white) !important;
    color: var(--vc-text-dark) !important;
}
.vc-post-content table tr {
    background-color: var(--vc-white) !important;
}
.vc-post-content table thead tr {
    background: linear-gradient(135deg, var(--vc-primary), var(--vc-primary-dark)) !important;
}
.vc-post-content table tbody tr:nth-child(even) td {
    background-color: var(--vc-bg-light) !important;
}
.vc-post-content table tbody tr:hover td {
    background-color: #FFF3E9 !important;
}

.vc-post-content tbody tr:has(td em) {
    background: #fff9f5;
    border-top: 2px solid var(--vc-primary);
}

/* 响应式表格 */
@media (max-width: 768px) {
    .vc-post-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 20px 0;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    
    .vc-post-content thead th,
    .vc-post-content tbody td {
        padding: 12px 15px;
        font-size: 14px;
        white-space: nowrap;
    }
}

/* ==================== FAQ常见问题区块 ==================== */
.vc-faq-section {
    margin: 0px 50px 50px 40px;
    padding: 40px;
    background: var(--vc-bg-light);
    border-radius: 16px;
}

.vc-faq-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--vc-border);
}

.vc-faq-header svg {
    color: var(--vc-primary);
    flex-shrink: 0;
}

.vc-faq-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--vc-text-dark);
    margin: 0;
}

.vc-faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.vc-faq-item {
    background: var(--vc-white);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--vc-border);
    transition: all 0.3s;
}

.vc-faq-item.active {
    border-color: var(--vc-primary);
    box-shadow: 0 4px 20px rgba(255, 106, 0, 0.1);
}

.vc-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s;
}

.vc-faq-question:hover {
    background: var(--vc-bg-light);
}

.vc-faq-q-icon {
    width: 32px;
    height: 32px;
    background: var(--vc-primary);
    color: var(--vc-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.vc-faq-q-text {
    flex: 1;
    font-size: 17px;
    font-weight: 600;
    color: var(--vc-text-dark);
    line-height: 1.5;
}

.vc-faq-toggle {
    flex-shrink: 0;
    color: var(--vc-text-light);
    transition: transform 0.3s;
}

.vc-faq-item.active .vc-faq-toggle {
    transform: rotate(180deg);
    color: var(--vc-primary);
}

.vc-faq-answer {
    display: none !important;
    padding: 20px 25px 25px 25px;
    border-top: 1px solid var(--vc-border);
}

.vc-faq-item.active .vc-faq-answer {
    display: flex !important;
    gap: 15px;
    animation: faqSlideDown 0.3s ease;
}

@keyframes faqSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vc-faq-a-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--vc-primary), var(--vc-primary-dark));
    color: var(--vc-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.vc-faq-a-text {
    flex: 1;
    font-size: 16px;
    line-height: 1.7;
    color: var(--vc-text-dark);
}

.vc-faq-a-text p {
    margin: 0 0 10px 0;
}

.vc-faq-a-text p:last-child {
    margin-bottom: 0;
}

/* ==================== 专家观点引用 ==================== */
.vc-expert-quote {
    margin: 40px 50px;
    padding: 30px;
    background: #fafafa;
    border-left: 4px solid #666;
    border-radius: 8px;
    position: relative;
}

.vc-expert-quote-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #ccc;
    opacity: 0.3;
}

.vc-expert-quote-text {
    margin: 0 0 20px 0;
    padding-left: 50px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--vc-text-dark);
    font-style: italic;
}

.vc-expert-quote-text p {
    margin: 0 0 10px 0;
}

.vc-expert-quote-text p:last-child {
    margin-bottom: 0;
}

.vc-expert-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 50px;
}

.vc-expert-avatar {
    width: 40px;
    height: 40px;
    background: #e5e5e5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    flex-shrink: 0;
}

.vc-expert-details {
    flex: 1;
}

.vc-expert-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--vc-text-dark);
    margin-bottom: 2px;
}

.vc-expert-title {
    font-size: 13px;
    color: #666;
}

/* ==================== 相关资源推荐 ==================== */
.vc-related-resources {
    margin: 40px 50px;
    padding: 25px;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.vc-related-resources-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--vc-text-dark);
    margin: 0 0 18px 0;
}

.vc-related-resources-title svg {
    color: #999;
    flex-shrink: 0;
}

.vc-related-resources-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vc-resource-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: var(--vc-white);
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    text-decoration: none;
    color: var(--vc-text-dark);
    transition: all 0.3s;
}

.vc-resource-item:hover {
    border-color: var(--vc-primary);
    background: #fff9f5;
    transform: translateX(5px);
}

.vc-resource-item svg {
    color: var(--vc-primary);
    flex-shrink: 0;
}

.vc-resource-item span {
    flex: 1;
    font-size: 15px;
    line-height: 1.5;
}

/* ==================== 行动号召CTA ==================== */
.vc-post-cta {
    margin: 40px 50px;
    padding: 35px 40px;
    background: linear-gradient(135deg, #FF6A00, #FF8C00);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    box-shadow: 0 4px 20px rgba(255, 106, 0, 0.2);
}

.vc-post-cta-content {
    flex: 1;
}

.vc-post-cta-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--vc-white);
    margin: 0 0 10px 0;
}

.vc-post-cta-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.6;
}

.vc-post-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--vc-white);
    color: var(--vc-primary);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    white-space: nowrap;
}

.vc-post-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.vc-post-cta-button svg {
    flex-shrink: 0;
}

/* ==================== 文章底部 ==================== */
.vc-post-footer {
    padding: 30px 50px;
    border-top: 1px solid var(--vc-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

.vc-post-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.vc-post-tags svg {
    color: var(--vc-text-light);
    flex-shrink: 0;
}

.vc-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vc-tag {
    background: var(--vc-bg-light);
    color: var(--vc-text-dark);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid var(--vc-border);
}

.vc-tag:hover {
    background: var(--vc-primary);
    color: var(--vc-white);
    border-color: var(--vc-primary);
    transform: translateY(-2px);
}

.vc-post-share {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vc-share-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--vc-text-dark);
}

.vc-share-buttons {
    display: flex;
    gap: 8px;
}

.vc-share-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--vc-bg-light);
    color: var(--vc-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.vc-share-btn:hover {
    background: var(--vc-primary);
    color: var(--vc-white);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
}

/* 点赞按钮 */
.vc-post-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vc-like-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid var(--vc-border);
    background: var(--vc-white);
    color: var(--vc-text-light);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.vc-like-btn svg {
    transition: all 0.3s;
}

.vc-like-btn:hover {
    border-color: #ff4757;
    color: #ff4757;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.2);
}

.vc-like-btn.liked {
    border-color: #ff4757;
    background: #fff5f7;
    color: #ff4757;
}

.vc-like-btn.liked svg {
    fill: #ff4757;
    stroke: #ff4757;
}

.vc-like-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.vc-like-count {
    font-weight: 600;
}

/* ==================== 作者卡片 ==================== */
.vc-author-card {
    margin: 40px 50px;
    padding: 30px;
    background: var(--vc-bg-light);
    border-radius: 12px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.vc-author-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--vc-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vc-author-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vc-author-card-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--vc-text-dark);
    margin: 0 0 10px 0;
}

.vc-author-card-info p {
    font-size: 14px;
    color: var(--vc-text-light);
    line-height: 1.6;
    margin: 0;
}

/* ==================== 文章导航 ==================== */
.vc-post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 50px;
    padding: 30px 0;
    border-top: 2px solid var(--vc-border);
}

.vc-post-nav-item {
    padding: 20px;
    background: var(--vc-white);
    border: 2px solid var(--vc-border);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vc-post-nav-item:not(.vc-post-nav-empty):hover {
    border-color: var(--vc-primary);
    background: var(--vc-bg-light);
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(255, 106, 0, 0.15);
}

.vc-post-nav-empty {
    border: 2px dashed var(--vc-border);
    background: var(--vc-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    font-size: 13px;
    color: var(--vc-text-light);
}

.vc-post-nav-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--vc-text-light);
}

.vc-post-nav-prev .vc-post-nav-label {
    justify-content: flex-start;
}

.vc-post-nav-next .vc-post-nav-label {
    justify-content: flex-end;
}

.vc-post-nav-label svg {
    flex-shrink: 0;
}

.vc-post-nav-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--vc-text-dark);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vc-post-nav-prev .vc-post-nav-title {
    text-align: left;
}

.vc-post-nav-next .vc-post-nav-title {
    text-align: right;
}

.vc-post-nav-item:hover .vc-post-nav-title {
    color: var(--vc-primary);
}

.vc-post-nav-item:hover .vc-post-nav-label {
    color: var(--vc-primary);
}

/* ==================== 相关文章推荐 ==================== */
.vc-related-articles {
    margin: 50px 50px 40px;
    padding: 40px 0;
    border-top: 2px solid var(--vc-border);
}

.vc-related-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--vc-text-dark);
    margin: 0 0 30px 0;
    text-align: center;
}

.vc-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.vc-related-card {
    background: var(--vc-white);
    border: 2px solid var(--vc-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.vc-related-card:hover {
    border-color: var(--vc-primary);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 106, 0, 0.15);
}

.vc-related-image {
    width: 100%;
    overflow: hidden;
    display: block;
    background: #f5f5f5;
}

.vc-related-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.vc-related-card:hover .vc-related-image img {
    transform: scale(1.05);
}

.vc-related-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vc-related-category {
    display: inline-block;
    background: var(--vc-bg-light);
    color: var(--vc-primary);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 12px;
    width: fit-content;
}

.vc-related-card-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 12px 0;
}

.vc-related-card-title a {
    color: var(--vc-text-dark);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.vc-related-card-title a:hover {
    color: var(--vc-primary);
}

.vc-related-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--vc-text-light);
    margin-top: auto;
}

.vc-related-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==================== 评论区 ==================== */
.vc-comments-section {
    padding: 40px 50px;
    border-top: 1px solid var(--vc-border);
}

/* ==================== 侧边栏定位 ==================== */
.vc-single-post .vc-category-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.vc-single-post .vc-author-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

/* ==================== 移动端浮动TOC按钮 ==================== */
.vc-toc-mobile-trigger {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--vc-primary), var(--vc-primary-dark));
    color: var(--vc-white);
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(255, 106, 0, 0.4);
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s;
    align-items: center;
    justify-content: center;
}

.vc-toc-mobile-trigger:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 106, 0, 0.5);
}

.vc-toc-mobile-trigger svg {
    width: 24px;
    height: 24px;
}

/* 移动端TOC抽屉 */
.vc-toc-mobile-drawer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    pointer-events: none;
}

.vc-toc-mobile-drawer.active {
    pointer-events: auto;
}

.vc-toc-mobile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s;
}

.vc-toc-mobile-drawer.active .vc-toc-mobile-overlay {
    opacity: 1;
}

.vc-toc-mobile-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 70vh;
    background: var(--vc-white);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.vc-toc-mobile-drawer.active .vc-toc-mobile-content {
    transform: translateY(0);
}

.vc-toc-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 15px;
    border-bottom: 2px solid var(--vc-border);
    flex-shrink: 0;
}

.vc-toc-mobile-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--vc-text-dark);
}

.vc-toc-mobile-title svg {
    color: var(--vc-primary);
}

.vc-toc-mobile-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--vc-bg-light);
    border-radius: 50%;
    color: var(--vc-text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.vc-toc-mobile-close:hover {
    background: var(--vc-primary);
    color: var(--vc-white);
}

.vc-toc-mobile-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    /* 隐藏滚动条但保持滚动功能 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}

.vc-toc-mobile-body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.vc-toc-mobile-progress {
    padding: 15px 20px;
    background: var(--vc-bg-light);
    border-bottom: 1px solid var(--vc-border);
    flex-shrink: 0;
}

.vc-toc-mobile-progress .vc-reading-progress {
    margin: 0;
    padding: 0;
    background: transparent;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1400px) {
    .vc-post-layout {
        grid-template-columns: 250px 1fr 350px;
        gap: 25px;
    }
}

@media (max-width: 1200px) {
    .vc-post-layout {
        grid-template-columns: 1fr 350px;
    }
    
    /* 隐藏左侧TOC，显示移动端按钮 */
    .vc-toc-sidebar {
        display: none;
    }
    
    .vc-toc-mobile-trigger {
        display: flex;
    }
    
    .vc-toc-mobile-drawer {
        display: block;
    }
}

@media (max-width: 1200px) {
    .vc-single-post .vc-author-sidebar {
        position: static;
    }
}

@media (max-width: 992px) {
    .vc-post-layout {
        grid-template-columns: 1fr;
    }
    
    .vc-category-sidebar {
        order: 1;
    }
    
    .vc-single-post .vc-category-sidebar {
        position: static;
    }
    
    .vc-single-post .vc-author-sidebar {
        position: static;
        order: 1;
    }
    
    .vc-post-main {
        order: 0;
    }
}

@media (max-width: 768px) {
    .vc-toc-mobile-trigger {
        bottom: 70px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
    
    .vc-toc-mobile-trigger svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 768px) {
    .vc-single-post {
        padding: 20px 0 40px;
    }
    
    .vc-post-container {
        padding: 0 15px;
    }
    
    .vc-post-header {
        padding: 30px 25px 20px;
    }
    
    .vc-post-title {
        font-size: 28px;
    }
    
    .vc-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .vc-post-updated {
        margin-left: 0;
        margin-top: 8px;
        display: flex;
    }
    
    .vc-post-content {
        padding: 30px 25px;
        font-size: 16px;
    }
    
    .vc-post-summary {
        padding: 18px 20px;
        margin-bottom: 25px;
    }
    
    .vc-post-summary-header {
        font-size: 12px;
    }
    
    .vc-post-summary-content {
        padding-left: 0;
    }
    
    .vc-summary-main {
        font-size: 16px;
    }
    
    .vc-summary-detail {
        font-size: 14px;
    }
    
    .vc-post-content h2 {
        font-size: 24px;
    }
    
    .vc-post-content h3 {
        font-size: 20px;
    }
    
    .vc-faq-section {
        margin: 0;
        padding: 25px 20px;
    }
    
    .vc-faq-header h2 {
        font-size: 24px;
    }
    
    .vc-faq-question {
        padding: 15px 18px;
    }
    
    .vc-faq-q-text {
        font-size: 15px;
    }
    
    .vc-faq-answer {
        padding: 15px 18px 18px 18px;
    }
    
    .vc-faq-a-text {
        font-size: 14px;
    }
    
    .vc-expert-quote {
        margin: 30px 25px;
        padding: 20px;
    }
    
    .vc-expert-quote-text {
        padding-left: 40px;
        font-size: 15px;
    }
    
    .vc-expert-info {
        padding-left: 40px;
    }
    
    .vc-related-resources {
        margin: 30px 25px;
        padding: 20px;
    }
    
    .vc-related-resources-title {
        font-size: 16px;
    }
    
    .vc-resource-item {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .vc-post-cta {
        margin: 30px 25px;
        padding: 25px 20px;
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .vc-post-cta-title {
        font-size: 20px;
    }
    
    .vc-post-cta-text {
        font-size: 14px;
    }
    
    .vc-post-cta-button {
        width: 100%;
        justify-content: center;
    }
    
    .vc-post-footer {
        padding: 25px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .vc-post-tags {
        width: 100%;
    }
    
    .vc-post-share {
        width: 100%;
        justify-content: space-between;
    }
    
    .vc-author-card {
        margin: 30px 25px;
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .vc-post-navigation {
        grid-template-columns: 1fr;
        margin: 30px 25px;
        padding: 20px 0;
    }
    
    .vc-related-articles {
        margin: 40px 25px 30px;
        padding: 30px 0;
    }
    
    .vc-related-title {
        font-size: 24px;
    }
    
    .vc-related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .vc-comments-section {
        padding: 30px 25px;
    }
}

@media (max-width: 480px) {
    .vc-post-title {
        font-size: 24px;
    }
    
    .vc-post-content {
        padding: 25px 20px;
        font-size: 15px;
    }
    
    .vc-post-content h2 {
        font-size: 22px;
    }
    
    .vc-post-content h3 {
        font-size: 18px;
    }
    
    .vc-post-footer {
        padding: 20px;
    }
    
    .vc-author-card {
        margin: 25px 20px;
        padding: 20px;
    }
    
    .vc-author-card-avatar {
        width: 60px;
        height: 60px;
    }
    
    .vc-post-navigation {
        margin: 25px 20px;
    }
    
    .vc-related-articles {
        margin: 30px 20px 25px;
    }
}

/* ===== 供货商推荐（排名最高的6个） ===== */
.vc-supplier-recs {
    margin: 0 50px 50px;
    padding: 40px 0;
    border-top: 2px solid var(--vc-border);
}

.vc-supplier-recs-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--vc-text-dark);
    margin: 0 0 8px;
    text-align: center;
}

.vc-supplier-recs-sub {
    font-size: 15px;
    color: var(--vc-text-light);
    text-align: center;
    margin: 0 0 30px;
}

.vc-supplier-recs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.vc-supplier-rec-card {
    background: var(--vc-white);
    border: 2px solid var(--vc-border);
    border-radius: 12px;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
}

.vc-supplier-rec-card:hover {
    border-color: var(--vc-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.vc-supplier-rec-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--vc-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.vc-supplier-rec-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vc-supplier-rec-avatar span {
    font-size: 22px;
    font-weight: 700;
    color: var(--vc-primary);
}

.vc-supplier-rec-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--vc-text-dark);
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.vc-supplier-rec-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 600;
    color: #1a73e8;
    background: rgba(26, 115, 232, 0.1);
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
}

.vc-supplier-rec-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 10px;
}

.vc-supplier-rec-tags span {
    font-size: 12px;
    color: var(--vc-text-light);
    background: var(--vc-bg-light);
    padding: 3px 10px;
    border-radius: 20px;
}

@media (max-width: 992px) {
    .vc-supplier-recs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .vc-supplier-recs {
        margin: 0 25px 30px;
        padding: 30px 0;
    }

    .vc-supplier-recs-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .vc-supplier-recs {
        margin: 0 20px 25px;
    }

    .vc-supplier-recs-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}
