/* ============================================================
   全速数据 · 专题文章页样式(独立于 PC 端 main.css)
   设计目标:单栏长文阅读体验,移动端 / 平板 / 桌面自适应
   ============================================================ */

:root {
  --blue: #2563eb;
  --blue-deep: #1d4ed8;
  --blue-soft: #eff6ff;
  --ink: #0f172a;
  --ink-2: #1e293b;
  --body: #475569;
  --muted: #94a3b8;
  --line: #e2e8f0;
  --bg: #f6f8fe;
  --card: #ffffff;
  --radius: 16px;
  --shadow-soft: 0 8px 30px -10px rgba(37, 99, 235, 0.12);
  --shadow-card: 0 20px 50px -20px rgba(30, 64, 175, 0.18);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei',
    'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: rgba(37, 99, 235, 0.18);
  color: #1e3a8a;
}

/* ---------------- 顶栏 ---------------- */
.art-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.art-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.art-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.art-brand img {
  width: 36px;
  height: 36px;
}

.art-brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink);
  white-space: nowrap;
}

.art-brand-sub {
  display: block;
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.art-header-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.art-header-link {
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  white-space: nowrap;
  transition: color 0.2s;
}

.art-header-link:hover {
  color: var(--ink);
}

.art-header-cta {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 10px 24px -10px rgba(37, 99, 235, 0.6);
  transition: background 0.25s, transform 0.25s;
}

.art-header-cta:hover {
  background: var(--blue-deep);
  transform: translateY(-1px);
}

/* ---------------- 页面骨架 ---------------- */
.art-main {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 20px 0;
}

.art-wide {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 面包屑 */
.art-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}

.art-crumb a {
  color: #64748b;
  transition: color 0.2s;
}

.art-crumb a:hover {
  color: var(--blue);
}

.art-crumb svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: #cbd5e1;
}

.art-crumb .cur {
  color: var(--ink-2);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 46vw;
}

/* ---------------- 文章头部 ---------------- */
.art-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.art-badge--blue { background: #eff6ff; color: #2563eb; }
.art-badge--violet { background: #f5f3ff; color: #7c3aed; }
.art-badge--emerald { background: #ecfdf5; color: #059669; }

h1.art-title {
  font-size: 34px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  overflow-wrap: break-word;
}

.art-lead {
  position: relative;
  margin-top: 26px;
  padding: 24px 24px 20px 26px;
  font-size: 16px;
  line-height: 1.95;
  color: #475569;
  background: linear-gradient(135deg, #eef4ff 0%, #f7faff 55%, #ffffff 100%);
  border: 1px solid #dbe4ff;
  border-left: 4px solid var(--blue);
  border-radius: 0 16px 16px 0;
  box-shadow: 0 10px 26px -18px rgba(37, 99, 235, 0.35);
}

.art-lead::before {
  content: '导语';
  position: absolute;
  top: -12px;
  left: 18px;
  display: inline-block;
  padding: 2px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, #4f46e5 100%);
  border-radius: 999px;
  box-shadow: 0 8px 16px -8px rgba(37, 99, 235, 0.7);
}

.art-lead[data-lead]::before {
  content: attr(data-lead);
}

html.lang-en .art-lead::before,
html.lang-es .art-lead::before,
html.lang-fr .art-lead::before,
html.lang-de .art-lead::before,
html.lang-pt .art-lead::before,
html.lang-ru .art-lead::before,
html.lang-it .art-lead::before,
html.lang-th .art-lead::before,
html.lang-hi .art-lead::before,
html.lang-id .art-lead::before {
  letter-spacing: 0.04em;
}

.art-lead::after {
  content: '“';
  position: absolute;
  right: 16px;
  top: 2px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 52px;
  line-height: 1;
  color: rgba(37, 99, 235, 0.16);
  pointer-events: none;
}

/* 元信息:作者 / 发布时间 / 阅读时长 */
.art-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: 22px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  color: #64748b;
}

.art-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.art-meta-item svg {
  width: 15px;
  height: 15px;
  color: var(--muted);
  flex-shrink: 0;
}

.art-meta-item b {
  font-weight: 600;
  color: var(--ink-2);
}

/* 封面图 */
.art-cover {
  margin: 28px 0 8px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.art-cover img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

/* ---------------- 目录 ---------------- */
.art-toc {
  margin: 32px 0;
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.art-toc-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.art-toc-title svg {
  width: 15px;
  height: 15px;
  color: var(--blue);
}

.art-toc ol {
  list-style: none;
  counter-reset: toc;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 24px;
}

.art-toc li {
  counter-increment: toc;
}

.art-toc a {
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: #64748b;
  padding: 3px 0;
  transition: color 0.2s;
}

.art-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 12px;
  font-weight: 700;
  color: #bfdbfe;
  line-height: 1.9;
}

.art-toc a:hover {
  color: var(--blue);
}

/* ---------------- 正文排版 ---------------- */
.art-body {
  font-size: 16px;
}

.art-body h2 {
  font-size: 23px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
  margin: 44px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--blue);
  scroll-margin-top: 84px;
}

.art-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-2);
  margin: 30px 0 12px;
  scroll-margin-top: 84px;
}

.art-body p {
  margin: 0 0 16px;
}

.art-body strong {
  color: var(--ink-2);
  font-weight: 600;
}

.art-body a {
  color: var(--blue);
  border-bottom: 1px solid rgba(37, 99, 235, 0.3);
  transition: border-color 0.2s;
}

.art-body a:hover {
  border-bottom-color: var(--blue);
}

.art-body ul,
.art-body ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.art-body li {
  margin-bottom: 8px;
}

.art-body li::marker {
  color: var(--blue);
  font-weight: 600;
}

/* 引用 */
.art-body blockquote {
  margin: 24px 0;
  padding: 16px 22px;
  background: var(--blue-soft);
  border-left: 4px solid var(--blue);
  border-radius: 0 12px 12px 0;
  color: #1e40af;
  font-size: 15px;
}

.art-body blockquote p {
  margin: 0;
}

/* 提示框 */
.art-note {
  display: flex;
  gap: 12px;
  margin: 24px 0;
  padding: 16px 18px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  font-size: 14.5px;
  color: #92400e;
}

.art-note svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  color: #d97706;
}

.art-note p {
  margin: 0;
}

/* 表格 */
.art-table-wrap {
  margin: 24px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.art-body table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14.5px;
}

.art-body th {
  background: #f8fafc;
  color: var(--ink);
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.art-body td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--body);
}

.art-body tr:last-child td {
  border-bottom: none;
}

/* 行内代码 / 代码块 */
.art-body code {
  font-family: 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: #eef2ff;
  color: #4338ca;
  padding: 2px 6px;
  border-radius: 6px;
}

.art-body pre {
  margin: 24px 0;
  padding: 18px 20px;
  background: #0b1526;
  border-radius: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.art-body pre code {
  background: none;
  color: #c7d7f0;
  padding: 0;
  font-size: 13px;
  line-height: 1.7;
}

/* 步骤卡 */
.art-steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 12px;
  margin: 20px 0 24px;
}

.art-steps li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding: 16px 18px 16px 58px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.art-steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px -8px rgba(37, 99, 235, 0.8);
}

.art-steps b {
  display: block;
  color: var(--ink);
  font-size: 15px;
  margin-bottom: 2px;
}

.art-steps p {
  margin: 0;
  font-size: 14px;
  color: var(--body);
}

/* ---------------- 关键词标签 ---------------- */
.art-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 40px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.art-tags-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.art-tags-label svg {
  width: 15px;
  height: 15px;
  color: var(--blue);
}

.art-tag {
  font-size: 13px;
  color: #475569;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 5px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  transition: color 0.2s, border-color 0.2s;
}

a.art-tag:hover {
  color: var(--blue);
  border-color: #bfdbfe;
}

/* ---------------- 文内 CTA ---------------- */
.art-cta {
  position: relative;
  overflow: hidden;
  margin: 40px 0 0;
  padding: 34px 30px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0f172a 0%, #1e2a4a 100%);
  text-align: center;
}

.art-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.art-cta h2 {
  position: relative;
  color: #fff;
  font-size: 21px;
  font-weight: 700;
}

.art-cta p {
  position: relative;
  margin-top: 10px;
  color: #94a3b8;
  font-size: 14.5px;
}

.art-cta-actions {
  position: relative;
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.art-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 999px;
  box-shadow: 0 14px 30px -12px rgba(37, 99, 235, 0.7);
  transition: background 0.25s, transform 0.25s;
}

.art-cta-btn:hover {
  background: var(--blue-deep);
  transform: translateY(-2px);
}

.art-cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #e2e8f0;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 999px;
  transition: border-color 0.25s, background 0.25s;
}

.art-cta-ghost:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
}

/* ---------------- 相关推荐 ---------------- */
.art-related {
  margin: 64px 0 0;
  padding: 48px 0 8px;
  border-top: 1px solid var(--line);
}

.art-related-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.art-related-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.art-related-more {
  font-size: 14px;
  font-weight: 500;
  color: var(--blue);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.art-related-more svg {
  width: 14px;
  height: 14px;
}

.art-related-more:hover {
  color: var(--blue-deep);
}

.art-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.art-rcard {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid #f1f5f9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
}

.art-rcard:hover {
  transform: translateY(-5px);
  border-color: #dbeafe;
  box-shadow: var(--shadow-card);
}

.art-rcard-media {
  position: relative;
  aspect-ratio: 16 / 8;
  overflow: hidden;
}

.art-rcard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.art-rcard:hover .art-rcard-media img {
  transform: scale(1.05);
}

.art-rcard-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 20px;
}

.art-rcard-badge {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}

.art-rcard-title {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.art-rcard:hover .art-rcard-title {
  color: var(--blue);
}

.art-rcard-desc {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.art-rcard-foot {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted);
}

.art-rcard-foot .go {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--blue);
  font-weight: 500;
}

.art-rcard-foot .go svg {
  width: 13px;
  height: 13px;
}

/* ---------------- 页脚 ---------------- */
.art-footer {
  margin-top: 72px;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 36px 0;
}

.art-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.art-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.art-footer-brand img {
  width: 30px;
  height: 30px;
}

.art-footer-brand b {
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.art-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13.5px;
  color: #64748b;
}

.art-footer-links a:hover {
  color: var(--blue);
}

.art-footer-copy {
  width: 100%;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
}

.art-footer-copy a {
  margin-left: 10px;
}

.art-footer-copy a:hover {
  color: var(--blue);
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
  .art-related-grid {
    grid-template-columns: 1fr 1fr;
  }

  .art-related-grid .art-rcard:nth-child(3) {
    grid-column: 1 / -1;
  }

  .art-related-grid .art-rcard:nth-child(3) .art-rcard-media {
    aspect-ratio: 21 / 8;
  }
}

@media (max-width: 640px) {
  .art-header-inner {
    height: 58px;
    padding: 0 16px;
  }

  .art-brand img {
    width: 32px;
    height: 32px;
  }

  .art-brand-sub {
    display: none;
  }

  .art-header-link {
    display: none;
  }

  .art-header-cta {
    font-size: 13px;
    padding: 8px 16px;
  }

  .art-main {
    padding: 26px 16px 0;
  }

  .art-wide {
    padding: 0 16px;
  }

  .art-crumb {
    margin-bottom: 20px;
  }

  h1.art-title {
    font-size: 25px;
  }

  .art-lead {
    font-size: 15px;
  }

  .art-meta {
    gap: 8px 16px;
    font-size: 12.5px;
  }

  .art-cover img {
    aspect-ratio: 16 / 9;
  }

  .art-toc ol {
    grid-template-columns: 1fr;
  }

  .art-body {
    font-size: 15px;
  }

  .art-body h2 {
    font-size: 20px;
    margin-top: 36px;
  }

  .art-body h3 {
    font-size: 16.5px;
  }

  .art-cta {
    padding: 28px 20px;
  }

  .art-related-grid {
    grid-template-columns: 1fr;
  }

  .art-related-grid .art-rcard:nth-child(3) .art-rcard-media {
    aspect-ratio: 16 / 8;
  }

  .art-related-title {
    font-size: 20px;
  }

  .art-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   接入指南预览布局:专题页顶栏/底栏 + 左侧目录
   仅 body.art-guide 生效,不影响其他文章页
   ============================================================ */
/* 覆盖 main.css 的 html{min-width:1200px},让文章页可自适应缩放 */
html:has(body.art-guide) {
  min-width: 0;
}

body.art-guide {
  background: #fff;
  min-width: 0;
}

body.art-guide #site-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

body.art-guide #site-header .page-container {
  min-width: 0;
}

body.art-guide #site-header .nav-primary {
  flex-shrink: 1;
  min-width: 0;
}

body.art-guide .art-main {
  max-width: none;
  margin: 0;
  padding: 0;
}

.art-guide-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 110px 24px 72px;
  align-items: stretch;
}

.art-aside {
  order: 2;
}

.art-aside-sticky {
  position: sticky;
  top: 102px;
  max-height: calc(100vh - 122px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.art-aside-sticky::-webkit-scrollbar {
  display: none;
}

.art-guide-content {
  order: 1;
  min-width: 0;
}

.art-aside-block + .art-aside-block {
  margin-top: 36px;
}

.art-aside-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
}

.art-toc-side {
  position: relative;
  padding-left: 18px;
}

.art-toc-side::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: #e2e8f0;
}

.art-toc-side ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: block;
}

.art-toc-side li {
  position: relative;
  margin: 0 0 14px;
}

.art-toc-side li:last-child {
  margin-bottom: 0;
}

.art-toc-side a {
  display: block;
  font-size: 13.5px;
  line-height: 1.55;
  color: #94a3b8;
  transition: color 0.2s;
}

.art-toc-side a:hover {
  color: var(--ink);
}

.art-toc-side a::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cbd5e1;
  box-shadow: 0 0 0 3px #fff;
}

.art-toc-side a.is-active {
  color: var(--blue);
  font-weight: 600;
}

.art-toc-side a.is-active::before {
  width: 9px;
  height: 9px;
  left: -17px;
  top: 6px;
  background: var(--blue);
}

.art-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.art-progress-track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: #eef2f7;
  overflow: hidden;
}

.art-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--blue);
  transition: width 0.15s linear;
}

.art-progress-pct {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  min-width: 2.4em;
  text-align: right;
}

.art-share {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 10px;
}

.art-share-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #64748b;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.art-share-btn i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 16px -10px rgba(15, 23, 42, 0.18);
}

.art-share-btn svg {
  width: 18px;
  height: 18px;
}

.art-share-btn:hover {
  color: var(--ink);
}

.art-share-pop {
  display: none;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.art-share-pop.is-open {
  display: block;
}

.art-share-pop img {
  width: 108px;
  height: 108px;
  margin: 0 auto 8px;
}

.art-share-pop p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.art-share-toast {
  font-size: 12px;
  color: var(--blue);
  margin-top: 8px;
  min-height: 1em;
}

/* 侧栏 CTA 卡:接入全速数据 API */
.art-aside-cta {
  margin-top: 32px;
  padding: 24px 22px;
  border: 1px solid #dbe4ff;
  border-radius: 16px;
  background: linear-gradient(180deg, #f5f8ff 0%, #eef3ff 100%);
}

.art-aside-cta-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
}

.art-aside-cta-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: #64748b;
  margin: 0 0 16px;
}

.art-aside-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  padding: 11px 26px;
  border-radius: 10px;
  box-shadow: 0 12px 26px -12px rgba(37, 99, 235, 0.65);
  transition: background 0.25s, transform 0.25s;
}

.art-aside-cta-btn:hover {
  background: var(--blue-deep);
  transform: translateY(-1px);
}

.art-aside-cta-btn svg {
  width: 14px;
  height: 14px;
}

.art-aside-cta-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid #dbe4ff;
  display: grid;
  gap: 16px;
}

.art-aside-cta-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.art-aside-cta-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #e3ebff;
  color: var(--blue);
}

.art-aside-cta-ico svg {
  width: 18px;
  height: 18px;
}

.art-aside-cta-list b {
  display: block;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 1px;
}

.art-aside-cta-list p {
  margin: 0;
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.6;
}

body.art-guide .art-body h2 {
  scroll-margin-top: 108px;
}

body.art-guide .art-related {
  margin-top: 56px;
}

body.art-guide .footer-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  font-size: 14px;
  color: #64748b;
}

/* 页脚整体深色(与 m.apiballs.com 一致) */
body.art-guide footer#contact {
  background: #0b1b33;
  border-top: 0;
  color: #94a3b8;
}

body.art-guide footer h3,
body.art-guide .footer-brand-name {
  color: #fff;
}

body.art-guide .footer-brand-en {
  color: #64748b;
}

body.art-guide footer .footer-point {
  color: #94a3b8;
}

body.art-guide footer .footer-link {
  color: #94a3b8;
}

body.art-guide footer .footer-link svg {
  color: #64748b;
}

body.art-guide footer .footer-link:hover,
body.art-guide footer .footer-link:hover svg {
  color: #fff;
}

body.art-guide footer .text-slate-400 {
  color: #64748b;
}

body.art-guide .footer-legal a {
  color: #94a3b8;
}

body.art-guide .footer-legal a:hover {
  color: #fff;
}

body.art-guide .footer-slogan,
body.art-guide .footer-copy-m {
  display: none;
}

body.art-guide .art-m-burger {
  display: none;
}

body.art-guide .contact-fab {
  right: 40px;
  bottom: 100px;
  width: 48px;
  height: 48px;
}

body.art-guide .contact-fab svg {
  width: 22px;
  height: 22px;
}

body.art-guide #back-to-top {
  right: 40px;
  bottom: 40px;
  width: 48px;
  height: 48px;
}

body.art-guide .lang-switch-item.is-open > .nav-dropdown {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
  transform: none;
}

.art-m-drawer {
  display: none;
}

@media (max-width: 1240px) {
  .art-guide-shell {
    grid-template-columns: minmax(0, 1fr) 264px;
    gap: 36px;
    padding-left: 20px;
    padding-right: 20px;
  }

  body.art-guide #site-header .page-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  body.art-guide #site-header .nav-primary {
    gap: 18px;
  }

  body.art-guide #site-header .nav-link {
    gap: 4px;
  }
}

/* 页面缩小放不下右侧栏时,直接去掉右侧区域 */
@media (max-width: 1100px) {
  .art-guide-shell {
    grid-template-columns: 1fr;
    padding-top: 98px;
  }

  .art-aside {
    display: none;
  }

  body.art-guide .lang-switch {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    gap: 0;
    color: #64748b;
    border-radius: 999px;
  }

  body.art-guide .lang-switch > svg:first-child {
    width: 22px;
    height: 22px;
  }

  body.art-guide .lang-switch-label,
  body.art-guide .lang-switch-caret {
    display: none;
  }

  body.art-guide .lang-switch::after {
    display: none;
  }

  /* 窄屏只按点击开合,禁用 hover 触发,避免鼠标一移就消失 */
  body.art-guide .lang-switch-item:not(.is-open) > .nav-dropdown,
  body.art-guide .lang-switch-item:not(.is-open) > .nav-dropdown:hover {
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
  }

  body.art-guide .lang-panel {
    grid-auto-columns: minmax(0, max-content);
    padding: 6px;
    gap: 0 4px;
  }

  body.art-guide .lang-panel--few {
    grid-template-rows: none;
    grid-auto-flow: row;
    min-width: 200px;
  }

  body.art-guide .lang-option {
    padding: 7px 12px;
    font-size: 13.5px;
  }
}

/* ---------- 导航栏自适应(文章页) ---------- */
@media (max-width: 960px) {
  body.art-guide #site-header .page-container {
    height: 56px;
    padding-left: 16px;
    padding-right: 16px;
  }

  body.art-guide #site-header img {
    height: 32px;
    width: 32px;
  }

  body.art-guide #site-header .brand-name {
    font-size: 15px;
    letter-spacing: 0.18em;
  }

  body.art-guide #site-header .brand-name + span {
    font-size: 8px;
    letter-spacing: 0.22em;
  }

  body.art-guide #site-header .nav-primary {
    display: none;
  }

  body.art-guide .header-actions {
    gap: 4px;
  }

  body.art-guide .nav-login {
    display: none;
  }

  body.art-guide #site-header .nav-trial a {
    padding: 6px 14px;
    font-size: 13px;
  }

  body.art-guide #site-header .nav-tip {
    display: none;
  }

  body.art-guide .art-m-burger {
    display: flex;
    position: relative;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
  }

  body.art-guide .art-m-burger span {
    position: absolute;
    left: 11px;
    width: 18px;
    height: 1.6px;
    border-radius: 999px;
    background: #334155;
    transition: transform 0.2s, opacity 0.2s;
  }

  body.art-guide .art-m-burger span:nth-child(1) { top: 13px; }
  body.art-guide .art-m-burger span:nth-child(2) { top: 19px; }
  body.art-guide .art-m-burger span:nth-child(3) { top: 25px; }

  body.art-guide .art-m-burger.is-open span:nth-child(1) {
    top: 19px;
    transform: rotate(45deg);
  }

  body.art-guide .art-m-burger.is-open span:nth-child(2) {
    opacity: 0;
  }

  body.art-guide .art-m-burger.is-open span:nth-child(3) {
    top: 19px;
    transform: rotate(-45deg);
  }

  .art-m-drawer {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
    visibility: hidden;
  }

  .art-m-drawer.is-open {
    pointer-events: auto;
    visibility: visible;
  }

  .art-m-drawer-mask {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 0.25s;
  }

  .art-m-drawer.is-open .art-m-drawer-mask {
    opacity: 1;
  }

  .art-m-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    width: min(320px, 86vw);
    height: 100%;
    background: #fff;
    box-shadow: -12px 0 40px -18px rgba(15, 23, 42, 0.35);
    transform: translateX(100%);
    transition: transform 0.28s ease;
  }

  .art-m-drawer.is-open .art-m-drawer-panel {
    transform: translateX(0);
  }

  .art-m-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid #f1f5f9;
  }

  .art-m-drawer-head img {
    width: 28px;
    height: 28px;
  }

  .art-m-drawer-head span span {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #0f172a;
  }

  .art-m-drawer-close {
    display: flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
  }

  .art-m-drawer-close svg {
    width: 14px;
    height: 14px;
  }

  .art-m-drawer-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 4px 20px 24px;
  }

  .art-m-drawer-nav {
    display: flex;
    flex-direction: column;
  }

  .art-m-nav-link,
  .art-m-acc-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 12px;
    padding: 15px 0;
    border: 0;
    border-bottom: 1px solid #f1f5f9;
    background: transparent;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    text-align: left;
    cursor: pointer;
  }

  .art-m-nav-link > svg,
  .art-m-acc-toggle > svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #94a3b8;
  }

  .art-m-acc-arrow {
    display: flex;
    width: 30px;
    height: 30px;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    transition: transform 0.25s, background 0.2s, color 0.2s;
  }

  .art-m-acc-arrow svg {
    width: 14px;
    height: 14px;
  }

  .art-m-acc.is-open .art-m-acc-arrow {
    transform: rotate(180deg);
    background: #eff6ff;
    color: #2563eb;
  }

  .art-m-acc-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
  }

  .art-m-acc.is-open .art-m-acc-panel {
    grid-template-rows: 1fr;
    border-bottom: 1px solid #f1f5f9;
  }

  .art-m-acc-inner {
    min-height: 0;
    overflow: hidden;
  }

  /* 复用顶栏下拉的分组内容,改为两列排布 */
  .art-m-sub > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 8px;
    padding: 6px 0 10px;
  }

  .art-m-sub .nav-dropdown-title {
    grid-column: 1 / -1;
    margin: 6px 0 4px;
    padding: 0;
    font-size: 13px;
    color: #0f172a;
  }

  .art-m-sub .nav-dropdown-link {
    padding: 7px 8px;
    font-size: 13px;
  }

  .art-m-drawer-foot {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-top: 22px;
  }

  .art-m-btn-ghost,
  .art-m-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
  }

  .art-m-btn-ghost {
    border: 1px solid #cbd5e1;
    color: #0f172a;
    background: #fff;
  }

  .art-m-btn-primary {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 10px 24px -10px rgba(37, 99, 235, 0.6);
  }

  .art-m-drawer-tip {
    grid-column: 1 / -1;
    margin: 4px 0 0;
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
  }

  body.art-guide .lang-dropdown {
    position: fixed;
    left: auto;
    right: 12px;
    top: 56px;
    transform: none;
  }

  .art-guide-shell {
    padding-top: 80px;
  }
}

@media (max-width: 640px) {
  body.art-guide #site-header .brand-name + span {
    display: none;
  }

  body.art-guide .header-actions {
    gap: 2px;
  }

  .art-guide-shell {
    padding: 80px 16px 48px;
  }

  h1.art-title {
    font-size: 24px;
  }

  .art-meta-item {
    white-space: normal;
  }

  .art-body table {
    min-width: 0;
  }

  .art-body th {
    white-space: normal;
  }

  .art-share-btn {
    max-width: 4.8em;
    line-height: 1.3;
    text-align: center;
  }

  .art-lead {
    margin-top: 24px;
    padding: 20px 18px 16px 20px;
    font-size: 14.5px;
  }

  .art-lead::after {
    font-size: 40px;
  }
}

/* ---------- 底部页脚自适应(文章页,窄屏对齐 m.apiballs.com) ---------- */
@media (max-width: 960px) {
  body.art-guide footer#contact {
    background: #0b1b33;
    color: #94a3b8;
    border-top: 0;
    padding: 40px 0 32px;
  }

  body.art-guide footer .page-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* 链接列一排两列(热门项目 / 球类项目 / 更多项目 / 更多服务 共 4 列两行):
     多语言文案更长,3 列并排在 375px 下会溢出换行,两列给每个词条更多宽度 */
  body.art-guide footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 28px;
    padding-bottom: 0;
  }

  body.art-guide footer .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  body.art-guide footer .footer-col-pc,
  body.art-guide footer .footer-points,
  body.art-guide footer .footer-cta-btn,
  body.art-guide .footer-copy-pc,
  body.art-guide .footer-legal-extra {
    display: none;
  }

  /* 「更多项目」列在窄屏一起展示,只有最后的二维码列继续隐藏 */
  body.art-guide footer .footer-grid > .footer-col-pc:not(:last-child) {
    display: block;
  }

  body.art-guide .footer-slogan {
    display: block;
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.7;
    color: #64748b;
  }

  body.art-guide .footer-brand-name {
    color: #fff !important;
    font-size: 15px;
    letter-spacing: 0.18em;
  }

  body.art-guide .footer-brand-en {
    color: #64748b !important;
    font-size: 9px;
    letter-spacing: 0.22em;
  }

  body.art-guide footer h3 {
    color: #fff !important;
    font-size: 13px;
    margin: 0;
  }

  body.art-guide footer ul.mt-6 {
    margin-top: 12px;
  }

  body.art-guide footer .footer-link,
  body.art-guide footer .space-y-3 {
    font-size: 12px;
    color: #94a3b8;
  }

  body.art-guide footer .footer-link {
    gap: 6px;
    align-items: flex-start;
    white-space: normal;
    line-height: 1.45;
  }

  body.art-guide footer .footer-link svg {
    width: 14px;
    height: 14px;
    margin-top: 2px;
    color: #64748b;
  }

  body.art-guide footer .footer-link:hover {
    color: #fff;
  }

  body.art-guide footer .footer-link:hover svg {
    color: #fff;
  }

  body.art-guide footer ul.space-y-3 > li + li {
    margin-top: 8px;
  }

  body.art-guide footer .hot-badge {
    display: none;
  }

  body.art-guide .footer-legal {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    padding: 20px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 11px;
    color: #64748b;
  }

  body.art-guide .footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 0;
    max-width: 100%;
  }

  body.art-guide .footer-legal-links a {
    color: #94a3b8;
    white-space: nowrap;
  }

  body.art-guide .footer-legal-links a:hover {
    color: #fff;
  }

  /* 分隔符跟在词条后面,整段作为 flex 单元换行,避免「| 长德文」单独顶到下一行 */
  body.art-guide .footer-legal-links a + a::before {
    content: '|';
    display: inline-block;
    margin: 0 10px;
    color: #475569;
  }

  body.art-guide .footer-copy-m {
    display: block;
    margin: 0;
    font-size: 11px;
    line-height: 1.6;
    color: #64748b;
  }

  body.art-guide .contact-fab,
  body.art-guide #back-to-top {
    right: 16px;
  }

  body.art-guide #back-to-top {
    bottom: 20px;
  }

  body.art-guide .contact-fab {
    bottom: 80px;
  }

  body.art-guide .contact-fab-tip {
    display: none;
  }
}

/* ============================================================
   版式 A:接入指南 —— 浅色 Hero + 三栏(目录 / 正文 / 侧卡)
   仅 body.art-guide.art-guide--wide 生效
   ============================================================ */
.agx-hero {
  background: linear-gradient(135deg, #eaf0ff 0%, #f5f8ff 45%, #ffffff 100%);
  border-bottom: 1px solid #e8eefc;
  padding-top: 118px;
}

.agx-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 500px;
  gap: 44px;
  align-items: center;
}

.agx-hero-copy {
  padding: 8px 0 68px;
}

.agx-hero .art-crumb {
  margin-bottom: 22px;
}

.agx-hero h1.art-title {
  font-size: 36px;
}

.agx-hero-lead {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.9;
  color: #475569;
}

.agx-hero .art-meta {
  border: 0;
  padding: 0;
  margin-top: 22px;
}

.agx-hero-media {
  margin-bottom: 68px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(30, 64, 175, 0.45);
}

.agx-hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.agx-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.agx-highlights {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: -34px;
}

.agx-hl {
  display: flex;
  gap: 14px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid #e6ecf8;
  border-radius: 16px;
  box-shadow: 0 18px 40px -26px rgba(30, 64, 175, 0.35);
}

.agx-hl-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eff4ff;
  color: #2563eb;
}

.agx-hl-ico svg {
  width: 22px;
  height: 22px;
}

.agx-hl b {
  display: block;
  font-size: 15px;
  color: #0f172a;
  margin-bottom: 4px;
}

.agx-hl p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: #64748b;
}

.agx-grid {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 300px;
  gap: 44px;
  margin-top: 56px;
  align-items: stretch;
}

.agx-grid > * {
  min-width: 0;
}

.agx-main article {
  min-width: 0;
}

.agx-sticky {
  position: sticky;
  top: 102px;
}

.agx-col-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 14px;
}

.agx-toc-col .art-toc-side a {
  font-size: 13px;
}

.art-toc-side li ol {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.art-toc-side li li {
  margin: 0 0 8px;
}

.art-toc-side li li a {
  font-size: 12.5px;
  color: #a3aebf;
}

.art-toc-side li li a::before {
  width: 5px;
  height: 5px;
  left: -15px;
  top: 8px;
  background: #e2e8f0;
}

.art-toc-side li li a.is-active::before {
  width: 7px;
  height: 7px;
  left: -16px;
  top: 7px;
}

.agx-doc {
  margin-top: 28px;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f5f8ff, #eef3ff);
  border: 1px solid #dbe4ff;
}

.agx-doc b {
  display: block;
  font-size: 14px;
  color: #0f172a;
}

.agx-doc p {
  margin: 6px 0 10px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #64748b;
}

.agx-doc a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
}

.agx-doc a svg {
  width: 13px;
  height: 13px;
}

.agx-toc-col .art-share {
  margin-top: 28px;
  gap: 10px 8px;
}

.agx-toc-col .art-share-btn i {
  width: 36px;
  height: 36px;
}

.agx-toc-col .art-share-btn svg {
  width: 16px;
  height: 16px;
}

.agx-main .art-body {
  counter-reset: sec;
}

.agx-main .art-body h2 {
  display: flex;
  gap: 10px;
  align-items: baseline;
  counter-increment: sec;
  font-size: 22px;
  padding-left: 0;
  border-left: 0;
  margin: 40px 0 14px;
}

.agx-main .art-body h2::before {
  content: counter(sec) '.';
  color: #2563eb;
  font-weight: 800;
}

.agx-main .art-body > h2:first-child {
  margin-top: 0;
}

.agx-main .art-steps {
  gap: 0;
  margin: 20px 0 28px;
}

.agx-main .art-steps li {
  padding: 0 0 24px 54px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.agx-main .art-steps li:last-child {
  padding-bottom: 4px;
}

.agx-main .art-steps li::before {
  left: 2px;
  top: 0;
  width: 34px;
  height: 34px;
  font-size: 15px;
}

.agx-main .art-steps li::after {
  content: '';
  position: absolute;
  left: 18px;
  top: 40px;
  bottom: 4px;
  width: 2px;
  border-radius: 999px;
  background: #e2e8f0;
}

.agx-main .art-steps li:last-child::after {
  display: none;
}

.agx-main .art-steps b {
  font-size: 15.5px;
  padding-top: 5px;
  margin-bottom: 6px;
}

.agx-card {
  padding: 24px 22px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e6ecf8;
  box-shadow: 0 16px 36px -26px rgba(30, 64, 175, 0.3);
}

.agx-card + .agx-card {
  margin-top: 20px;
}

.agx-card--plain {
  background: #f8faff;
  box-shadow: none;
}

.agx-card-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
}

.agx-card-desc {
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #64748b;
}

.agx-check {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.agx-check li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 13.5px;
  color: #334155;
}

.agx-check svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: #2563eb;
}

.agx-btn,
.agx-btn-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.agx-btn svg {
  width: 14px;
  height: 14px;
}

.agx-btn {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(37, 99, 235, 0.65);
}

.agx-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.agx-btn-ghost {
  margin-top: 10px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
}

.agx-btn-ghost:hover {
  border-color: #94a3b8;
}

.agx-res {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #e6ecf8;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.agx-res + .agx-res {
  margin-top: 10px;
}

.agx-res:hover {
  border-color: #bfdbfe;
  box-shadow: 0 10px 24px -16px rgba(37, 99, 235, 0.35);
}

.agx-res-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #eff4ff;
  color: #2563eb;
}

.agx-res-ico svg {
  width: 18px;
  height: 18px;
}

.agx-res b {
  display: block;
  font-size: 14px;
  color: #0f172a;
}

.agx-res p {
  margin: 2px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: #64748b;
}

.agx-container .art-related {
  margin-top: 56px;
  padding-top: 44px;
}

.agx-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  padding: 38px 44px;
  border-radius: 20px;
  border: 1px solid #c9d8ff;
  background:
    radial-gradient(420px 200px at 12% 110%, rgba(37, 99, 235, 0.22), transparent 70%),
    radial-gradient(360px 180px at 88% -20%, rgba(99, 102, 241, 0.2), transparent 70%),
    linear-gradient(135deg, #d6e2ff 0%, #e4ecff 50%, #eef3ff 100%);
  box-shadow: 0 24px 50px -32px rgba(30, 64, 175, 0.4);
}

.agx-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(37, 99, 235, 0.16) 1px, transparent 1.4px),
    linear-gradient(rgba(255, 255, 255, 0.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.45) 1px, transparent 1px);
  background-size: 22px 22px, 44px 44px, 44px 44px;
  background-position: 0 0, -1px -1px, -1px -1px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.35));
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.35));
}

.agx-banner::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 36px solid rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.agx-banner > * {
  position: relative;
  z-index: 1;
}

.agx-banner h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
}

.agx-banner p {
  margin: 8px 0 0;
  font-size: 14.5px;
  color: #64748b;
}

.agx-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.agx-banner .agx-btn,
.agx-banner .agx-btn-ghost {
  width: auto;
  margin: 0;
  padding: 0 26px;
  border-radius: 999px;
}

.agx-banner .agx-btn-ghost {
  border: 1px solid #b7c7f2;
}

.agx-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 40px 0 64px;
  padding-top: 28px;
  border-top: 1px solid #e8eefc;
}

.agx-strip-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.agx-strip-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #eff4ff;
  color: #2563eb;
}

.agx-strip-ico svg {
  width: 20px;
  height: 20px;
}

.agx-strip b {
  display: block;
  font-size: 14px;
  color: #0f172a;
}

.agx-strip p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: #64748b;
}

@media (max-width: 1240px) {
  .agx-hero-inner {
    grid-template-columns: minmax(0, 1fr) 420px;
  }

  .agx-grid {
    grid-template-columns: 180px minmax(0, 1fr) 280px;
    gap: 32px;
  }
}

@media (max-width: 1100px) {
  .agx-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .agx-toc-col {
    display: none;
  }

  .agx-main .art-crumb .cur {
    max-width: 60vw;
  }
}

@media (max-width: 960px) {
  .agx-hero {
    padding-top: 84px;
  }

  .agx-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .agx-hero-copy {
    padding-bottom: 0;
  }

  .agx-hero-media {
    margin-bottom: 60px;
  }

  .agx-highlights {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .agx-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    margin-top: 40px;
  }

  .agx-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .agx-hero-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .agx-right-col .agx-sticky {
    position: static;
  }

  .agx-strip {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .agx-hero h1.art-title {
    font-size: 26px;
  }

  .agx-hero-lead {
    font-size: 15px;
  }

  .agx-banner {
    padding: 26px 22px;
  }

  .agx-banner h2 {
    font-size: 20px;
  }

  .agx-strip {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   版式 B:行业观察 —— 深色 Hero + 正文/右栏 + 深色底部 CTA
   仅 body.art-guide.art-guide--dark-hero 生效
   ============================================================ */
.agd-hero {
  position: relative;
  overflow: hidden;
  padding: 118px 0 60px;
  color: #fff;
  background:
    radial-gradient(760px 420px at 88% 18%, rgba(37, 99, 235, 0.42), transparent 62%),
    radial-gradient(520px 320px at 8% 90%, rgba(79, 70, 229, 0.28), transparent 60%),
    linear-gradient(135deg, #0b1b33 0%, #0e2244 100%);
}

.agd-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent);
}

.agd-hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
  gap: 48px;
  align-items: center;
}

.agd-hero .art-crumb {
  margin-bottom: 22px;
  color: #7c8aa5;
}

.agd-hero .art-crumb a {
  color: #94a3b8;
}

.agd-hero .art-crumb a:hover,
.agd-hero .art-crumb .cur {
  color: #e2e8f0;
}

.agd-hero .art-crumb svg {
  color: #475569;
}

.agd-hero .art-badge {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #bfdbfe;
}

.agd-hero h1.art-title {
  color: #fff;
  font-size: 38px;
}

.agd-hero-lead {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.9;
  color: #b6c2d9;
}

.agd-hero .art-meta {
  margin-top: 24px;
  padding: 16px 0 0;
  border-bottom: 0;
  border-color: rgba(255, 255, 255, 0.12);
  color: #94a3b8;
}

.agd-hero .art-meta-item b {
  color: #e2e8f0;
}

.agd-hero .art-meta-item svg {
  color: #64748b;
}

.agd-hero-media {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 40px 70px -32px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.agd-hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

body.art-guide--dark-hero .art-guide-shell {
  padding-top: 52px;
  padding-bottom: 28px;
}

.agd-pull {
  position: relative;
  margin: 0 0 32px;
  padding: 24px 28px 24px 70px;
  border: 1px solid #dbe4ff;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef4ff 0%, #f7faff 100%);
  font-size: 17px;
  line-height: 1.8;
  font-weight: 600;
  color: #1e3a8a;
}

.agd-pull::before {
  content: '“';
  position: absolute;
  left: 22px;
  top: 8px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 66px;
  line-height: 1;
  color: #2563eb;
  opacity: 0.75;
}

.agd-layers {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 20px 0 26px;
  padding: 0;
}

.agd-layers li {
  display: grid;
  grid-template-columns: 40px 150px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #e6ecf8;
  border-radius: 12px;
  box-shadow: 0 10px 26px -22px rgba(30, 64, 175, 0.35);
}

.agd-layers .n {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.agd-layers b {
  font-size: 15px;
  color: #0f172a;
  padding-right: 12px;
  border-right: 1px solid #e2e8f0;
}

.agd-layers p {
  margin: 0;
  font-size: 14px;
  color: #475569;
}

.agd-banner {
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  position: relative;
  z-index: 2;
}

.agd-banner-inner {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 44px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0b1b33 0%, #10254a 100%);
}

.agd-banner-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(420px 220px at 55% 50%, rgba(37, 99, 235, 0.35), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
}

.agd-banner-inner > * {
  position: relative;
  z-index: 1;
}

.agd-banner h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.agd-banner p {
  margin: 8px 0 0;
  font-size: 14.5px;
  color: #94a3b8;
}

.agd-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.agd-btn,
.agd-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 26px;
  border-radius: 10px;
  font-size: 15px;
  white-space: nowrap;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.agd-btn {
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 14px 30px -12px rgba(37, 99, 235, 0.7);
}

.agd-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.agd-btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #e2e8f0;
  font-weight: 500;
}

.agd-btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
}

.agd-related-wrap {
  background: #f6f8fe;
  border-top: 1px solid #e8eefc;
  padding: 0 0 64px;
}

.agd-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.agd-related-wrap .agd-banner {
  margin-top: -48px;
}

.agd-related-wrap .agd-banner-inner {
  box-shadow: 0 28px 50px -28px rgba(11, 27, 51, 0.55);
}

.agd-related-wrap .art-related,
body.art-guide--dark-hero .agd-related-wrap .art-related,
body.art-guide .agd-related-wrap .art-related {
  margin: 0;
  padding: 36px 0 0;
  border-top: 0;
}

.agd-related-wrap .art-rcard {
  border: 1px solid #e6ecf8;
  box-shadow: 0 18px 40px -30px rgba(30, 64, 175, 0.35);
}

@media (max-width: 1240px) {
  .agd-hero-inner {
    grid-template-columns: minmax(0, 1fr) 420px;
  }
}

@media (max-width: 960px) {
  .agd-hero {
    padding: 84px 0 40px;
  }

  .agd-hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .agd-hero h1.art-title {
    font-size: 30px;
  }

  body.art-guide--dark-hero .art-guide-shell {
    padding-top: 40px;
  }

  .agd-banner-inner {
    padding: 36px 22px;
  }

  .agd-related-wrap .agd-banner {
    margin-top: -28px;
  }
}

@media (max-width: 640px) {
  .agd-hero h1.art-title {
    font-size: 26px;
  }

  .agd-hero-lead {
    font-size: 15px;
  }

  .agd-pull {
    padding: 20px 20px 20px 54px;
    font-size: 15.5px;
  }

  .agd-pull::before {
    left: 14px;
    font-size: 52px;
  }

  .agd-layers li {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px 12px;
  }

  .agd-layers b {
    border-right: 0;
    padding-right: 0;
  }

  .agd-layers p {
    grid-column: 1 / -1;
  }

  .agd-banner h2 {
    font-size: 20px;
  }
}
