/* ==============================================================
   DouParse 内容页版式系统（方案A）
   依据 design-prototype 方案A：浅灰蓝底 / 墨蓝大字重标题 / 白卡细边框 /
   零阴影 / 大留白 / 编号步骤卡 / 横线 FAQ / 钴蓝主行动
   适用：所有引用 article.css 的教程、条款、API、产品页
   ============================================================== */

.article { padding: 52px 0 88px; }
.article .wrap { max-width: 1080px; }

/* ---------- 首屏：面包屑 + 大标题 + 右浮信息卡 ---------- */
.article .breadcrumb {
    font-size: 13px; color: var(--mute, #8A93A6); margin-bottom: 18px;
}
.article .breadcrumb a { color: inherit; text-decoration: none; }
.article .breadcrumb a:hover { color: var(--primary, #1F4FFF); }

.page-hero {
    display: grid; grid-template-columns: minmax(0, 1fr) 320px;
    gap: 48px; align-items: start;
    margin: 4px 0 48px; padding-bottom: 40px;
    border-bottom: 1px solid var(--border, #E3E7EF);
}
.page-hero-main h1 {
    font-size: 46px; line-height: 1.2; font-weight: 800;
    letter-spacing: -1px; color: var(--ink, #14213D);
    margin: 0 0 16px;
}
.page-hero-main h1 em { font-style: normal; color: var(--primary, #1F4FFF); }
.page-hero-main .lead {
    font-size: 17px; line-height: 1.85; color: var(--sub, #5B6478);
    margin: 0; max-width: 62ch;
}

/* 右浮信息卡：复用首页 .steps-card 语言，article.css 后加载需重新声明 */
.article .page-hero-aside {
    margin: 4px 0 0; padding: 24px 22px 20px;
    background: #fff; border: 1px solid var(--border, #E3E7EF);
    border-radius: 16px; box-shadow: none;
}
.article .page-hero-aside h2 {
    font-size: 16px; font-weight: 700; color: var(--ink, #14213D);
    margin: 0 0 16px; padding: 0; border: 0;
}
.article .page-hero-aside ol {
    list-style: none; margin: 0; padding: 0;
    display: grid; gap: 14px; max-width: none; counter-reset: none;
}
.article .page-hero-aside li {
    display: flex; align-items: center; gap: 12px;
    font-size: 14.5px; line-height: 1.6; color: var(--ink, #14213D);
    margin: 0; padding: 0; max-width: none; background: none; border: 0;
}
.article .page-hero-aside li i {
    flex: none; width: 24px; height: 24px; border-radius: 50%;
    background: var(--ink, #14213D); color: #fff; font-style: normal;
    font-weight: 700; font-size: 13px; display: grid; place-items: center;
}
.article .page-hero-aside li code {
    font-size: 11.5px; padding: 1px 4px;
}
.article .page-hero-aside .steps-note {
    margin: 16px 0 0; padding-top: 14px;
    border-top: 1px solid var(--line, #EDF0F5);
    font-size: 12.5px; line-height: 1.6; color: var(--mute, #8A93A6);
    max-width: none;
}
.article .aside-cta {
    display: inline-block; margin-top: 14px;
    color: var(--primary, #1F4FFF); font-size: 14px; font-weight: 700;
    text-decoration: none;
}
.article .aside-cta:hover { text-decoration: underline; }

/* ---------- 正文排版 ---------- */
.article p, .article ul, .article ol {
    max-width: 78ch; color: var(--sub, #5B6478);
    font-size: 15px; line-height: 1.9;
}
.article strong, .article b { color: var(--ink, #14213D); font-weight: 700; }
.article a { color: var(--primary, #1F4FFF); }
.article h2 {
    font-size: 28px; font-weight: 800; letter-spacing: -.4px;
    color: var(--ink, #14213D);
    margin: 56px 0 18px; padding: 0; border: 0;
}
.article h3 {
    font-size: 19px; font-weight: 700; color: var(--ink, #14213D);
    margin: 32px 0 12px;
}
.article ul, .article ol { padding-left: 22px; }
.article li { margin-bottom: 6px; }

/* 编号步骤：方案A 三步卡语言 */
.article .steps {
    list-style: none; padding: 0; margin: 18px 0 28px;
    display: grid; gap: 12px; max-width: none;
    counter-reset: dpstep;
}
.article .steps li {
    counter-increment: dpstep;
    display: flex; align-items: center; gap: 14px;
    margin: 0; padding: 14px 18px; max-width: none;
    background: #fff; border: 1px solid var(--border, #E3E7EF);
    border-radius: 12px; color: var(--ink, #14213D); font-size: 15px;
}
.article .steps li::before {
    content: counter(dpstep);
    flex: none; width: 26px; height: 26px; border-radius: 50%;
    background: var(--ink, #14213D); color: #fff;
    font-size: 13px; font-weight: 700; display: grid; place-items: center;
}

/* ---------- FAQ：纯横线分隔，不要圆角白卡 ---------- */
.article details {
    margin: 0; padding: 0;
    background: transparent; border: 0;
    border-bottom: 1px solid var(--line2, #DDE2EB); border-radius: 0;
}
.article details summary {
    list-style: none; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; gap: 14px;
    padding: 16px 0; font-size: 16px; font-weight: 700;
    color: var(--ink, #14213D);
}
.article details summary::-webkit-details-marker { display: none; }
.article details summary::after {
    content: "+"; flex: none; font-size: 21px; font-weight: 400; color: var(--sub, #5B6478);
}
.article details[open] summary::after { content: "−"; }
.article details p { margin: 0 0 16px; max-width: 78ch; }

/* ---------- 表格：细边框白卡 ---------- */
.article table, .article table.cmp {
    width: 100%; border-collapse: separate; border-spacing: 0;
    margin: 18px 0 28px;
    border: 1px solid var(--border, #E3E7EF); border-radius: 14px;
    overflow: hidden; font-size: 14px;
}
.article th, .article td, .article table.cmp th, .article table.cmp td {
    padding: 12px 16px; border: 0; border-bottom: 1px solid var(--line, #EDF0F5);
    text-align: left; vertical-align: top; line-height: 1.7;
}
.article tr:last-child td { border-bottom: 0; }
.article th, .article table.cmp th {
    background: var(--surface-hi, #EAF0FF); color: var(--ink, #14213D); font-weight: 700;
}
.article td { color: var(--sub, #5B6478); }

/* ---------- 行内代码 / 代码块 ---------- */
.article code {
    padding: 2px 6px; background: var(--tint, #EAF0FF);
    color: var(--primary, #1F4FFF);
    border-radius: 5px; font-size: .9em;
    font-family: var(--mono, Consolas, monospace);
}
.article pre {
    background: #F5F7FB; border: 1px solid var(--border, #E3E7EF);
    border-radius: 12px; color: var(--ink, #14213D);
}
.article pre code { background: transparent; padding: 0; color: inherit; }

/* ---------- CTA / 提示卡 ---------- */
.article .cta {
    display: inline-flex; align-items: center; justify-content: center;
    margin: 24px 0; padding: 14px 28px;
    background: var(--primary, #1F4FFF); color: #fff;
    text-decoration: none; border-radius: 12px;
    font-size: 15.5px; font-weight: 800; box-shadow: none;
}
.article .cta:hover {
    background: #1a44e0; text-decoration: none; transform: none;
}
.article .cta-bottom { text-align: left; margin-top: 40px; }
.article .note {
    font-size: 14px; line-height: 1.8; color: var(--sub, #5B6478);
    margin: 18px 0; padding: 14px 18px; max-width: none;
    background: var(--tint, #EAF0FF);
    border: 1px solid #C9D1E0; border-left: 3px solid var(--primary, #1F4FFF);
    border-radius: 12px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .page-hero { grid-template-columns: 1fr; gap: 24px; margin-bottom: 36px; padding-bottom: 28px; }
    .page-hero-main h1 { font-size: 34px; }
    .page-hero-main .lead { font-size: 15.5px; }
    .article .page-hero-aside { max-width: 480px; }
    .article h2 { font-size: 23px; margin-top: 40px; }
}
@media (max-width: 560px) {
    .article { padding: 28px 0 60px; }
    .page-hero-main h1 { font-size: 29px; }
    .article h2 { font-size: 21px; }
}
