/* ===== 博客文章公共样式 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', sans-serif; }
a { cursor: pointer; }
:root {
    --primary: #6366f1; --primary-light: #818cf8; --primary-dark: #4f46e5;
    --accent: #f59e0b; --accent-light: #fbbf24; --success: #10b981;
    --bg-dark: #0a0a0f; --bg-darker: #050508; --bg-card: #1a1a24; --bg-card-hover: #22223a;
    --text-primary: #ffffff; --text-secondary: #a1a1aa; --text-muted: #71717a;
    --border: rgba(255,255,255,0.08); --border-light: rgba(255,255,255,0.12);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.5); --shadow-lg: 0 16px 48px rgba(0,0,0,0.6);
}
body { background: var(--bg-dark); color: var(--text-primary); line-height: 1.8; }

/* 顶部导航 */
.blog-nav { max-width: 900px; margin: 0 auto; padding: 20px 24px; display: flex; align-items: center; gap: 12px; }
.blog-nav a { color: var(--text-secondary); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.blog-nav a:hover { color: var(--primary-light); }
.blog-nav .sep { color: var(--text-secondary); font-size: 12px; }
.blog-nav .current { color: var(--text-primary); font-weight: 500; }

/* 文章容器 */
.blog-article { max-width: 900px; margin: 0 auto; padding: 0 24px 60px; }

/* 文章头部 */
.blog-hero { text-align: center; padding: 40px 0 32px; }
.blog-hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -1px; line-height: 1.3; margin-bottom: 16px; background: linear-gradient(180deg, #fff 0%, #a1a1aa 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.blog-meta { display: flex; justify-content: center; gap: 20px; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; }
.blog-meta span { display: inline-flex; align-items: center; gap: 4px; }

/* 封面图 */
.blog-cover { width: 100%; border-radius: 16px; overflow: hidden; margin-bottom: 40px; border: 1px solid var(--border); }
.blog-cover img { width: 100%; height: auto; display: block; }

/* 正文 */
.blog-body { font-size: 16px; color: var(--text-secondary); line-height: 2; }
.blog-body h2 { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); margin: 48px 0 20px; padding-left: 16px; border-left: 3px solid var(--primary); letter-spacing: -0.5px; }
.blog-body h3 { font-size: 1.2rem; font-weight: 600; color: var(--text-primary); margin: 32px 0 12px; }
.blog-body p { margin-bottom: 16px; }
.blog-body strong { color: var(--text-primary); }
.blog-body a { color: var(--primary-light); text-decoration: none; border-bottom: 1px solid rgba(129,140,248,0.3); transition: border-color 0.2s; }
.blog-body a:hover { border-color: var(--primary-light); }
.blog-body ul, .blog-body ol { margin: 12px 0 20px 24px; }
.blog-body li { margin-bottom: 8px; }
.blog-body img { max-width: 100%; border-radius: 12px; margin: 20px 0; border: 1px solid var(--border); }

/* 步骤卡片 */
.step-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 28px; margin-bottom: 20px; position: relative; overflow: hidden; }
.step-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--primary), transparent); opacity: 0.5; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 50%; color: #fff; font-weight: 700; font-size: 16px; margin-bottom: 12px; }
.step-card h3 { margin-top: 0; border: none; padding: 0; }
.step-card p { margin-bottom: 8px; }
.step-card img { margin: 12px 0 0; }

/* 提示框 */
.tip-box { background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.25); border-radius: 12px; padding: 20px 24px; margin: 24px 0; color: var(--text-primary); line-height: 1.8; }
.tip-box.warning { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.25); }
.tip-box strong { color: #a5b4fc; }
.tip-box.warning strong { color: var(--accent-light); }

/* 对比表格 */
.compare-table { width: 100%; border-collapse: collapse; margin: 24px 0; border-radius: 12px; overflow: hidden; }
.compare-table th { background: var(--bg-card); color: var(--text-primary); padding: 14px 20px; text-align: left; font-weight: 600; border-bottom: 2px solid var(--primary); }
.compare-table td { padding: 12px 20px; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
.compare-table tr:hover td { background: var(--bg-card); }
.compare-table .highlight { color: #34d399; font-weight: 600; }
.compare-table .dim { color: var(--text-secondary); }

/* CTA 按钮 */
.cta-section { text-align: center; padding: 48px 0; }
.cta-btn { display: inline-block; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #ffffff !important; padding: 16px 44px; border-radius: 12px; text-decoration: none !important; font-weight: 700; font-size: 17px; letter-spacing: 0.3px; border: none !important; border-bottom: none !important; box-shadow: 0 8px 24px rgba(99,102,241,0.4); transition: all 0.3s; text-shadow: 0 1px 2px rgba(0,0,0,0.3); -webkit-text-fill-color: #ffffff; }
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(99,102,241,0.5); color: #ffffff !important; -webkit-text-fill-color: #ffffff; border-bottom: none !important; }
.cta-sub { margin-top: 12px; font-size: 14px; color: var(--text-secondary); }

/* 相关文章 */
.related-articles { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.related-articles h2 { border: none; padding: 0; text-align: center; margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.related-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; text-decoration: none; transition: all 0.3s; display: block; }
.related-card:hover { border-color: var(--border-light); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.related-card h3 { font-size: 15px; color: var(--text-primary); margin-bottom: 8px; font-weight: 600; line-height: 1.5; }
.related-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin: 0; }

/* 页脚 */
.blog-footer { max-width: 900px; margin: 0 auto; padding: 32px 24px; text-align: center; border-top: 1px solid var(--border); }
.blog-footer p { font-size: 13px; color: var(--text-secondary); margin: 4px 0; }
.blog-footer a { color: var(--text-secondary); text-decoration: none; }
.blog-footer a:hover { color: var(--primary-light); }

@media (max-width: 768px) {
    .blog-article { padding: 0 16px 40px; }
    .blog-hero { padding: 24px 0 20px; }
    .blog-body h2 { font-size: 1.3rem; }
    .step-card { padding: 20px; }
    .related-grid { grid-template-columns: 1fr; }
}
