/* =========================================================================
   51rokid · ROKID技术汇总 页面样式（仅本页特有，沿用首页 design token）
   ========================================================================= */

/* ---------- 列表区 ---------- */
.section-head-title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0;
}
.section-head-title .grad,
h1.grad > span.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
  max-width: var(--maxw);
  margin: 0 auto;
}

/* 复用首页的 .card 风格（玻璃卡） */
.article-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 26px;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 0.35s var(--ease),
              border-color 0.35s var(--ease),
              box-shadow 0.35s var(--ease);
  text-align: left;
}
.article-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.article-card h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text);
}
.article-card .article-summary {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}
.article-card .article-meta {
  color: var(--text-faint);
  font-size: 13px;
  margin-top: auto;
}

/* 空状态 + 加载态（与首页风格一致） */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
  font-size: 16px;
}
.empty-state p { margin: 6px 0; }
.empty-state .empty-eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 12px;
}

/* ---------- 详情页 ---------- */
.article-back { margin-bottom: 28px; }
.article-shell {
  max-width: 880px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 48px clamp(24px, 5vw, 64px);
}
.article-shell-head { text-align: center; margin-bottom: 32px; }
.article-shell-title {
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 12px 0 14px;
}
.article-shell-meta {
  color: var(--text-faint);
  font-size: 14px;
}

/* 文章正文样式（rich text 内容） */
.article-shell-body {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
}
.article-shell-body h1,
.article-shell-body h2,
.article-shell-body h3 {
  margin: 32px 0 14px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.article-shell-body h1 { font-size: 28px; font-weight: 800; }
.article-shell-body h2 { font-size: 22px; font-weight: 700; }
.article-shell-body h3 { font-size: 18px; font-weight: 700; color: var(--accent); }
.article-shell-body p { margin: 14px 0; }
.article-shell-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 20px 0;
  border: 1px solid var(--border);
}
.article-shell-body pre {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.65;
}
.article-shell-body code {
  font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}
.article-shell-body pre code {
  background: transparent;
  border: none;
  padding: 0;
}
.article-shell-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 18px;
  color: var(--text-dim);
  margin: 18px 0;
  font-style: italic;
}
.article-shell-body ul,
.article-shell-body ol {
  padding-left: 24px;
  margin: 14px 0;
}
.article-shell-body li { margin: 6px 0; }
.article-shell-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-shell-body a:hover { color: var(--text); }
.article-shell-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14px;
}
.article-shell-body th,
.article-shell-body td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
}
.article-shell-body th {
  background: var(--surface-strong);
  font-weight: 700;
}

/* ---------- 移动端 ---------- */
@media (max-width: 720px) {
  .article-shell { padding: 28px 18px; }
  .article-shell-title { font-size: 26px; }
  .article-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; } /* 移动端隐藏导航链，保留品牌 + 操作 */
}