/* v2：新增组件（接口/方案/数据字典/产品页），沿用 style.css 的颜色变量 */
.nav-lang a { font-size: 13px; border: 1px solid #d6dbe3; border-radius: 4px; padding: 2px 8px; }

.doc { padding: 40px 0 60px; }
.doc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.doc-main { min-width: 0; }
.crumbs { font-size: 14px; color: var(--text-light); margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--secondary-color); text-decoration: none; }
.doc-lead { font-size: 18px; color: var(--text-dark); line-height: 1.8; margin: 0 0 24px; padding: 16px 20px; background: #f3f7fc; border-left: 4px solid var(--secondary-color); border-radius: 4px; }
.doc-lead p { margin: 0; }
.doc-meta { margin-top: 32px; font-size: 13px; color: var(--text-light); }

.post-content h2 { font-size: 24px; color: var(--primary-color); margin: 40px 0 16px; padding-bottom: 8px; border-bottom: 1px solid #e6e9ef; }
.post-content h3 { margin-top: 28px; }
.post-content ul { padding-left: 1.4em; margin: 0 0 16px; }
.post-content li { margin: 6px 0; }
.post-content a { color: var(--secondary-color); }
.post-content table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 15px; }
@media (max-width: 760px) { .post-content table { display: block; overflow-x: auto; } }
.post-content th, .post-content td { border: 1px solid #e1e5eb; padding: 10px 12px; text-align: left; vertical-align: top; }
.post-content thead th { background: var(--primary-color); color: #fff; font-weight: 600; }
.post-content tbody tr:nth-child(even) { background: #fafbfc; }
.post-content code { font-family: "JetBrains Mono", Consolas, Menlo, monospace; font-size: 0.9em; background: #f1f3f6; padding: 1px 5px; border-radius: 3px; }
.post-content pre { background: #1e2a3a; color: #e6edf3; padding: 16px 18px; border-radius: 6px; overflow-x: auto; line-height: 1.6; margin: 0 0 20px; }
.post-content pre code { background: none; padding: 0; color: inherit; font-size: 14px; }
.post-content blockquote { margin: 0 0 20px; padding: 12px 18px; background: #fff8f2; border-left: 4px solid var(--accent-color); color: var(--text-dark); }
.post-content blockquote p { margin: 0; }

.doc-toc { border: 1px solid #e1e5eb; border-radius: 6px; padding: 12px 18px; margin: 0 0 24px; background: #fff; }
.doc-toc summary { cursor: pointer; font-weight: 600; color: var(--primary-color); }
.doc-toc ul { margin: 8px 0 0; padding-left: 1.2em; }
.doc-toc a { text-decoration: none; }

.doc-faq details { border: 1px solid #e1e5eb; border-radius: 6px; padding: 12px 16px; margin: 10px 0; background: #fff; }
.doc-faq summary { cursor: pointer; font-weight: 600; color: var(--primary-color); }
.doc-faq details > div { margin-top: 10px; }

.doc-side { position: sticky; top: 90px; display: grid; gap: 20px; }
.side-card { border: 1px solid #e1e5eb; border-radius: 8px; padding: 18px 20px; background: #fff; }
.side-card h3 { font-size: 16px; color: var(--primary-color); margin: 0 0 12px; }
.side-card dl { margin: 0; font-size: 14px; }
.side-card dt { color: var(--text-light); margin-top: 10px; }
.side-card dt:first-child { margin-top: 0; }
.side-card dd { margin: 2px 0 0; color: var(--text-dark); font-weight: 500; }
.side-card dd p { margin: 0; }
.side-card ul { margin: 0; padding-left: 1.1em; font-size: 14px; }
.side-card li { margin: 6px 0; }
.side-card a { color: var(--secondary-color); text-decoration: none; }
.side-cta { text-align: center; background: #f3f7fc; }
.side-cta p { font-size: 14px; color: var(--text-light); }
.side-cta img { display: block; margin: 8px auto 14px; }
.side-cta .btn { display: inline-block; color: #fff; }

.v2-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin: 24px 0 32px; }
.v2-card { display: flex; flex-direction: column; border: 1px solid #e1e5eb; border-radius: 8px; padding: 22px; background: #fff; text-decoration: none; color: var(--text-dark); transition: box-shadow .2s, transform .2s; }
.v2-card:hover { box-shadow: 0 8px 24px rgba(30, 58, 95, .12); transform: translateY(-2px); }
.v2-card h3 { font-size: 18px; color: var(--primary-color); margin: 6px 0 8px; }
.v2-card p { font-size: 14px; color: var(--text-light); flex: 1; margin: 0 0 12px; }
.v2-more { font-size: 14px; color: var(--secondary-color); }
.v2-badge { align-self: flex-start; font-size: 12px; font-family: Consolas, Menlo, monospace; background: var(--primary-color); color: #fff; padding: 2px 8px; border-radius: 3px; }
.section-body { margin-top: 16px; }

.home-section { padding: 64px 0; }
.home-section.alt { background: var(--bg-light); }
.home-section .section-title { margin-bottom: 8px; }
.home-section .v2-grid { margin-bottom: 8px; }
.home-more { text-align: center; margin-top: 16px; }
.audience { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 24px; }
.audience > div { background: #fff; border-radius: 8px; padding: 24px; border-top: 4px solid var(--secondary-color); box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.audience h3 { margin: 0 0 10px; color: var(--primary-color); }
.audience ul { margin: 0; padding-left: 1.2em; color: var(--text-light); }

.contact-options { display: flex; flex-wrap: wrap; gap: 40px; justify-content: center; align-items: center; }
.contact-alt { text-align: left; }
.contact-alt a { color: var(--secondary-color); }
.contact-alt .btn { color: #fff; }
.mail-form { display: grid; gap: 12px; max-width: 560px; }
.mail-form label { font-size: 14px; color: var(--text-light); display: grid; gap: 4px; }
.mail-form input, .mail-form select, .mail-form textarea { font: inherit; padding: 10px 12px; border: 1px solid #d6dbe3; border-radius: 6px; }
.mail-form button { justify-self: start; border: 0; cursor: pointer; }

@media (max-width: 900px) {
  .doc-grid { grid-template-columns: 1fr; }
  .doc-side { position: static; }
}
.doc-main.post-content, .home-section .post-content, .section-body.post-content { margin-top: 0; padding-top: 0; border-top: 0; }
.post-content h3 { font-size: 19px; }
