/**
 * VNCMac 技术博客长文模板（vm-* 版式）
 * 路径：frontend/zh/common/css/blog-article-template.css
 * 用法：各语言 blog 页 <head> 中引入；勿将本文件内容复制进单页 <style>（DRY）。
 * 依赖：body 加 class「vm-blog-post」；正文区使用 vm-article-hero / vm-prose-* 等结构类名。
 */
/* 版式：白底、网格 hero、章节大号序号、侧栏色条标题、步骤条、表格、FAQ、文末购买带；Inter + 系统衬线 */
*, *::before, *::after { box-sizing: border-box; }
body.vm-blog-post {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    background: #ffffff;
    color: #1a1a1a;
    margin: 0;
    overflow-x: hidden;
    line-height: 1.75;
}
@keyframes vmFadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}
.vm-anim-in { animation: vmFadeUp 0.75s cubic-bezier(0.16, 1, 0.3, 1) both; }
.vm-reveal-up {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.vm-reveal-up.is-visible { opacity: 1; transform: none; }
.vm-article-hero {
    background: #ffffff;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 52px 52px;
    padding: 8rem 1.5rem 5rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.vm-hero-glow-a {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.07) 0%, transparent 65%);
    width: 500px;
    height: 500px;
    top: -150px;
    left: -100px;
    filter: blur(60px);
}
.vm-hero-glow-b {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(212, 98, 42, 0.05) 0%, transparent 65%);
    width: 380px;
    height: 380px;
    bottom: -80px;
    right: -60px;
    filter: blur(60px);
}
.vm-hero-inner { position: relative; z-index: 1; max-width: 1090px; margin: 0 auto; }
.vm-meta-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 1.75rem; }
.vm-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 4px 13px;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.vm-chip-cat { background: rgba(0, 89, 181, 0.1); color: #0059b5; }
.vm-chip-date { background: rgba(0, 0, 0, 0.06); color: rgba(0, 0, 0, 0.42); }
.vm-chip-time { background: rgba(52, 199, 89, 0.1); color: #1a7a42; }
.vm-chip-tag { background: rgba(0, 0, 0, 0.05); color: rgba(0, 0, 0, 0.38); }
.vm-hero-title {
    font-family: 'Songti SC', 'STSong', 'PingFang SC', 'Hiragino Sans GB', 'Noto Serif SC', Georgia, serif;
    font-size: clamp(1.75rem, 5vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.15;
    color: #0d0d0d;
    margin: 0 0 1rem;
}
.vm-hero-sub {
    font-size: clamp(0.9375rem, 2vw, 1.1875rem);
    font-weight: 500;
    letter-spacing: -0.015em;
    color: rgba(0, 0, 0, 0.38);
    margin: 0;
}
.vm-article-cover-wrap { max-width: 1090px; margin: 0 auto; padding: 0 1.5rem; }
.vm-article-cover {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
    margin-top: -2rem;
    position: relative;
    z-index: 2;
}
.vm-article-cover img { width: 100%; height: 360px; object-fit: cover; display: block; }
@media (max-width: 640px) { .vm-article-cover img { height: 220px; } }
.vm-article-container { max-width: 1020px; margin: 0 auto; padding: 0 1.5rem; }
.vm-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.32);
    flex-wrap: wrap;
}
.vm-breadcrumb a { color: rgba(0, 0, 0, 0.32); text-decoration: none; transition: color 0.18s; }
.vm-breadcrumb a:hover { color: #007AFF; }
.vm-bc-sep { opacity: 0.35; }
.vm-article-lead {
    font-size: 1.0625rem;
    line-height: 1.95;
    color: #4a5568;
    border-left: 3px solid rgba(0, 122, 255, 0.4);
    padding: 1.125rem 1.625rem;
    background: rgba(0, 122, 255, 0.04);
    border-radius: 0 12px 12px 0;
    margin-bottom: 3rem;
    position: relative;
}
.vm-article-lead::before {
    content: '"';
    position: absolute;
    top: -0.75rem;
    left: 0.875rem;
    font-size: 4rem;
    line-height: 1;
    color: rgba(0, 122, 255, 0.1);
    font-family: 'Songti SC', 'PingFang SC', Georgia, serif;
    pointer-events: none;
}
.vm-article-lead strong { color: #1a2840; font-weight: 700; }
.vm-article-lead a { color: #007AFF; font-weight: 500; text-decoration: none; }
.vm-article-lead a:hover { text-decoration: underline; }
.vm-prose-section-wrap { padding: 4rem 0; }
.vm-prose-section-wrap.vm-alt-bg {
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.vm-sec-num {
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: -0.07em;
    line-height: 1;
    display: block;
    margin-bottom: -0.25rem;
    color: rgba(0, 0, 0, 0.06);
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.07);
    font-family: 'Inter', sans-serif;
}
.vm-prose-h2 {
    font-family: 'Songti SC', 'STSong', 'PingFang SC', 'Hiragino Sans GB', Georgia, serif;
    font-size: clamp(1.2rem, 3vw, 1.625rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.3;
    color: #111;
    margin: 0 0 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid #007AFF;
    scroll-margin-top: 90px;
}
.vm-prose-h3 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #222;
    margin: 2rem 0 0.625rem;
}
.vm-prose-p {
    font-size: 0.9375rem;
    line-height: 1.95;
    color: #4a5568;
    margin: 0 0 1.125rem;
}
.vm-prose-p:last-child { margin-bottom: 0; }
.vm-prose-p strong { color: #1a1a1a; font-weight: 700; }
.vm-prose-p a { color: #007AFF; font-weight: 500; text-decoration: none; }
.vm-prose-p a:hover { text-decoration: underline; }
.vm-prose-ul {
    padding-left: 1.25rem;
    margin: 0 0 1.125rem;
    color: #4a5568;
    font-size: 0.9375rem;
    line-height: 1.9;
}
.vm-prose-li { margin-bottom: 0.5rem; }
.vm-prose-li strong { color: #1a1a1a; font-weight: 700; }
.vm-mono { font-family: ui-monospace, 'SF Mono', Monaco, 'Cascadia Code', monospace; font-size: 0.8125rem; }
.vm-steps-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.vm-steps-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.875rem 1.125rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.07);
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.vm-steps-list li:hover {
    background: #ffffff;
    border-color: rgba(0, 122, 255, 0.18);
    box-shadow: 0 2px 12px rgba(0, 122, 255, 0.06);
}
.vm-step-badge {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    flex-shrink: 0;
    background: rgba(0, 122, 255, 0.1);
    border: 1px solid rgba(0, 122, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #007AFF;
}
.vm-steps-list li p { margin: 0; font-size: 0.9rem; line-height: 1.85; color: #4a5568; }
.vm-steps-list li p strong { color: #1a1a1a; }
.vm-code-block {
    background: #f6f7f9;
    border-radius: 12px;
    overflow: hidden;
    margin: 2rem 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}
.vm-code-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1.25rem;
    background: rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}
.vm-code-lang {
    font-family: ui-monospace, 'SF Mono', Monaco, monospace;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.32);
}
.vm-code-dots { display: flex; gap: 5px; }
.vm-code-dot { width: 10px; height: 10px; border-radius: 50%; }
.vm-code-body {
    font-family: ui-monospace, 'SF Mono', Monaco, monospace;
    font-size: 0.8125rem;
    line-height: 1.9;
    color: #3a4a5e;
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
    white-space: pre;
    margin: 0;
}
.vm-callout {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    border-radius: 12px;
    padding: 1.125rem 1.375rem;
    margin: 2rem 0;
    border: 1px solid;
}
.vm-callout p { margin: 0; font-size: 0.9rem; line-height: 1.85; color: #5a6a7e; }
.vm-callout p strong { color: #1a1a1a; }
.vm-callout p a { color: #007AFF; font-weight: 500; text-decoration: none; }
.vm-callout p a:hover { text-decoration: underline; }
.vm-ci { background: rgba(0, 122, 255, 0.05); border-color: rgba(0, 122, 255, 0.2); }
.vm-cw { background: rgba(234, 88, 12, 0.05); border-color: rgba(234, 88, 12, 0.2); }
.vm-ci .vm-cico { color: #007AFF; }
.vm-cw .vm-cico { color: #ea580c; }
.vm-cico { font-size: 1.15rem; flex-shrink: 0; margin-top: 2px; line-height: 1; }
.vm-tbl-wrap {
    overflow-x: auto;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin: 2rem 0;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05);
}
.vm-tbl { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.vm-tbl thead tr { background: rgba(0, 0, 0, 0.04); }
.vm-tbl th {
    text-align: left;
    padding: 0.8rem 1.25rem;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #007AFF;
    border-bottom: 1px solid rgba(0, 122, 255, 0.12);
}
.vm-tbl td {
    padding: 0.8rem 1.25rem;
    color: #5a6a7e;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
    line-height: 1.75;
    vertical-align: top;
}
.vm-tbl tr:last-child td { border-bottom: none; }
.vm-tbl tr:hover td { background: #f8f9fa; color: #3a4a5e; }
.vm-tbl td strong { color: #1a1a1a; font-weight: 700; }
.vm-pull-quote {
    margin: 2.5rem 0;
    padding: 1.375rem 2rem;
    border-left: 3px solid rgba(0, 0, 0, 0.12);
    background: #f4f6f8;
    border-radius: 0 12px 12px 0;
}
.vm-pull-quote p {
    font-family: 'Songti SC', 'PingFang SC', Georgia, serif;
    font-size: 1.0625rem;
    line-height: 1.8;
    font-weight: 500;
    color: #2a3a4e;
    margin: 0;
}
.vm-faq-item {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.22s, box-shadow 0.22s;
}
.vm-faq-item + .vm-faq-item { margin-top: 0.5rem; }
.vm-faq-item.vm-open { border-color: rgba(0, 122, 255, 0.25); box-shadow: 0 2px 16px rgba(0, 122, 255, 0.07); }
.vm-faq-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.vm-faq-q { font-size: 0.9375rem; font-weight: 600; color: #1a1a1a; line-height: 1.5; }
.vm-faq-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.4);
    transition: background 0.2s, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s;
}
.vm-faq-item.vm-open .vm-faq-icon { background: rgba(0, 122, 255, 0.12); color: #007AFF; transform: rotate(45deg); }
.vm-faq-body { max-height: 0; overflow: hidden; transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1); }
.vm-faq-item.vm-open .vm-faq-body { max-height: 560px; }
.vm-faq-ans { padding: 0.25rem 1.5rem 1.5rem; font-size: 0.9rem; line-height: 1.9; color: #5a6a7e; }
.vm-faq-ans a { color: #007AFF; font-weight: 500; text-decoration: none; }
.vm-faq-ans a:hover { text-decoration: underline; }
.vm-section-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 2rem;
}
.vm-sd-line { flex: 1; height: 1px; background: rgba(0, 0, 0, 0.07); }
.vm-sd-label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.28);
}
.vm-mb-8 { margin-bottom: 2rem; }
.vm-read-grid {
    display: grid;
    gap: 0.75rem;
    margin: 1.5rem 0 0;
}
@media (min-width: 640px) { .vm-read-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .vm-read-grid { grid-template-columns: repeat(3, 1fr); } }
.vm-read-card {
    display: block;
    padding: 1rem 1.125rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.vm-read-card:hover { border-color: rgba(0, 122, 255, 0.22); box-shadow: 0 4px 18px rgba(0, 122, 255, 0.08); }
.vm-read-card h4 { margin: 0 0 0.35rem; font-size: 0.875rem; font-weight: 700; color: #1a1a1a; }
.vm-read-card p { margin: 0; font-size: 0.78rem; line-height: 1.65; color: #5a6a7e; }
.vm-read-card span { display: inline-block; margin-top: 0.65rem; font-size: 0.7rem; font-weight: 700; color: #007AFF; }
.vm-deploy-wrap {
    padding: 2.75rem 1.25rem 3.75rem;
    background: linear-gradient(180deg, #eef6ff 0%, #f8fbff 38%, #ffffff 100%);
    border-top: 1px solid rgba(0, 122, 255, 0.12);
}
.vm-deploy-card {
    max-width: 42rem;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 1.75rem 2.25rem;
    border-radius: 20px;
    background: linear-gradient(145deg, #e3efff 0%, #f2f8ff 45%, #ffffff 100%);
    border: 1px solid rgba(0, 122, 255, 0.22);
    box-shadow:
        0 4px 6px rgba(0, 122, 255, 0.06),
        0 18px 48px rgba(0, 89, 181, 0.1);
}
@media (min-width: 640px) {
    .vm-deploy-card { padding: 2.25rem 2.5rem 2.5rem; }
}
.vm-deploy-eyebrow {
    display: inline-block;
    margin: 0 0 0.75rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0059b5;
    background: rgba(0, 122, 255, 0.12);
    border: 1px solid rgba(0, 122, 255, 0.2);
}
.vm-deploy-title {
    margin: 0 0 0.65rem;
    font-family: 'Songti SC', 'STSong', 'PingFang SC', 'Hiragino Sans GB', Georgia, serif;
    font-size: clamp(1.25rem, 3.5vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.35;
    color: #0d1f33;
}
.vm-deploy-lead {
    margin: 0 auto 1.5rem;
    max-width: 28rem;
    font-size: 0.9375rem;
    line-height: 1.85;
    color: #4a5568;
}
.vm-deploy-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
@media (min-width: 480px) {
    .vm-deploy-actions { flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 0.875rem; }
}
.vm-deploy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 2.35rem;
    border-radius: 999px;
    background: #0071e3;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.35);
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.vm-deploy-btn:hover {
    background: #0062cc;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 113, 227, 0.4);
}
.vm-deploy-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0059b5;
    text-decoration: none;
    border: 1px solid rgba(0, 122, 255, 0.35);
    background: rgba(255, 255, 255, 0.85);
    transition: background 0.2s, border-color 0.2s;
}
.vm-deploy-btn-secondary:hover {
    background: #fff;
    border-color: rgba(0, 122, 255, 0.55);
    color: #004494;
}

/* Utilities: spacing / headings / code chrome without inline styles (blog locales) */
.vm-article-lead-top { padding: 3.5rem 0 0; }
.vm-prose-h2.vm-heading-plain { border-left: none; padding-left: 0; }
.vm-breadcrumb .vm-bc-current { color: rgba(0, 0, 0, 0.35); }
.vm-section-divider.vm-mt-lg { margin-top: 3rem; }
.vm-code-dots .vm-code-dot:nth-child(1) { background: #ff5f57; }
.vm-code-dots .vm-code-dot:nth-child(2) { background: #febc2e; }
.vm-code-dots .vm-code-dot:nth-child(3) { background: #28c840; }
