/* ============================================================
   技术文章模块样式
   列表页 + 详情页
   ============================================================ */

/* ---------- 列表页：简洁文字列表（无卡片、无图） ---------- */
.art-list {
  max-width: 860px;
  margin: 0 auto;
}
.art-row {
  display: block;
  padding: 30px 6px;
  border-bottom: 1px solid #eef1f6;
  text-decoration: none;
  color: inherit;
}
.art-row:first-child { padding-top: 6px; }
.art-row-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.art-cat-tag {
  font-size: 12.5px;
  font-weight: 600;
  color: #0067e6;
  background: #eef5ff;
  padding: 3px 12px;
  border-radius: 4px;
}
.art-row-date {
  font-size: 12.5px;
  color: #a0aabd;
}
.art-title {
  font-size: 19px;
  line-height: 1.5;
  margin: 0 0 10px;
  font-weight: 700;
  color: #1a1a1a;
  transition: color .2s;
}
.art-row:hover .art-title { color: #0067e6; }
.art-summary {
  font-size: 14.5px;
  line-height: 1.8;
  color: #6b7280;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.art-meta {
  display: flex;
  gap: 16px;
  font-size: 12.5px;
  color: #a0aabd;
}
.art-empty {
  text-align: center;
  padding: 60px 0;
  color: #999;
}

/* ---------- 详情页：两栏布局 ---------- */
.art-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 52px;
  align-items: start;
}
@media (max-width: 1000px) {
  .art-wrap { grid-template-columns: 1fr; gap: 36px; }
}

.art-head {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid #eef1f6;
}
.art-head h1 {
  font-size: 34px;
  line-height: 1.35;
  margin: 0 0 18px;
  color: #14181f;
}
.art-info {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: #8a94a6;
}
.art-info span { display: flex; align-items: center; gap: 5px; }

/* ---------- 正文排版 ---------- */
.prose {
  font-size: 16px;
  line-height: 1.95;
  color: #2b3240;
}
.prose h2 {
  font-size: 24px;
  margin: 44px 0 18px;
  padding-left: 14px;
  border-left: 4px solid #0067e6;
  line-height: 1.4;
}
.prose h3 {
  font-size: 19px;
  margin: 30px 0 14px;
  color: #14181f;
}
.prose p { margin: 0 0 20px; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 24px; }
.prose li { margin-bottom: 10px; }
.prose strong { color: #14181f; font-weight: 600; }
.prose code {
  background: #f2f5fa;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 14px;
  color: #c7254e;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 14.5px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}
.prose th, .prose td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid #eef1f6;
}
.prose th {
  background: #f7f9fc;
  font-weight: 600;
  color: #4a5568;
  font-size: 13.5px;
}
.prose tr:last-child td { border-bottom: none; }
.prose blockquote {
  margin: 0 0 24px;
  padding: 18px 22px;
  background: #f4f8ff;
  border-left: 4px solid #0067e6;
  border-radius: 0 10px 10px 0;
  color: #3a4a63;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose img { max-width: 100%; height: auto; border-radius: 10px; }

/* 提示框（正文里用 <div class="tip">）*/
.tip {
  background: #fff8e8;
  border-left: 4px solid #f0a020;
  padding: 18px 22px;
  border-radius: 0 10px 10px 0;
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.8;
}
.tip b { color: #b87400; }

/* ---------- 侧边栏 ---------- */
.side {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.side-box {
  background: #fff;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}
.side-box h4 {
  font-size: 14px;
  margin: 0 0 14px;
  color: #8a94a6;
  font-weight: 600;
  letter-spacing: .5px;
}
.toc a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: #4a5568;
  text-decoration: none;
  border-bottom: 1px dashed #f0f3f8;
  line-height: 1.5;
}
.toc a:last-child { border-bottom: none; }
.toc a:hover { color: #0067e6; }

.side-cta {
  background: linear-gradient(135deg, #0067e6, #0052b8);
  color: #fff;
  text-align: center;
}
.side-cta h4 { color: rgba(255, 255, 255, .8); }
.side-cta p {
  font-size: 13.5px;
  line-height: 1.7;
  margin: 0 0 16px;
  opacity: .92;
}
.side-cta .btn {
  background: #fff;
  color: #0067e6;
  width: 100%;
}

.hot a {
  display: block;
  padding: 10px 0;
  font-size: 13.5px;
  color: #4a5568;
  text-decoration: none;
  line-height: 1.55;
  border-bottom: 1px solid #f7f9fc;
}
.hot a:last-child { border-bottom: none; }
.hot a:hover { color: #0067e6; }

/* ---------- 标签 ---------- */
.art-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #eef1f6;
}
.art-tag {
  background: #f2f5fa;
  color: #5a6b85;
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 16px;
}

/* ---------- 相关文章 ---------- */
.art-rel-title {
  font-size: 22px;
  margin: 0 0 24px;
  padding-left: 14px;
  border-left: 4px solid #0067e6;
}
.rel-list {
  max-width: 860px;
}
.rel-row {
  display: block;
  padding: 20px 6px;
  border-bottom: 1px solid #eef1f6;
  text-decoration: none;
  color: inherit;
}
.rel-row:hover .rel-title { color: #0067e6; }
.rel-cat {
  font-size: 12px;
  color: #0067e6;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}
.rel-title {
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 6px;
  font-weight: 600;
  color: #1a1a1a;
  transition: color .2s;
}
.rel-date { font-size: 12.5px; color: #a0aabd; }

/* ---------- 移动端正文微调 ---------- */
@media (max-width: 640px) {
  .art-head h1 { font-size: 26px; }
  .prose { font-size: 15.5px; line-height: 1.85; }
  .prose h2 { font-size: 20px; margin: 34px 0 14px; }
  .prose h3 { font-size: 17px; }
  .prose table { font-size: 13.5px; }
  .prose th, .prose td { padding: 10px 12px; }
}

/* ============================================================
   正文技术图解（SVG/HTML 表格版）
   ============================================================ */
.diagram {
  margin: 0 0 28px;
  padding: 24px;
  background: #f7f9fc;
  border-radius: 12px;
  border: 1px solid #e8eef7;
}
.diagram .cap {
  margin: 14px 0 0;
  font-size: 13px;
  color: #8a94a6;
  text-align: center;
  line-height: 1.6;
}

/* RAID 5 数据分布表 */
.raid-map {
  width: 100%;
  border-collapse: separate;
  border-spacing: 4px;
  margin: 0;
  background: transparent;
  box-shadow: none;
}
.raid-map th {
  background: transparent;
  font-size: 12.5px;
  color: #6b7a90;
  padding: 8px 6px;
  border: none;
  font-weight: 600;
  text-align: center;
}
.raid-map tbody th {
  text-align: right;
  padding-right: 10px;
  white-space: nowrap;
}
.raid-map td {
  padding: 12px 8px;
  text-align: center;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  border: none;
}
.raid-map td.d {
  background: #e3efff;
  color: #0052b8;
}
.raid-map td.p {
  background: #ffe8cc;
  color: #b87400;
}

/* SHR 分层示意 */
.shr-layers { display: flex; flex-direction: column; gap: 14px; }
.shr-layer {
  background: #fff;
  border-radius: 10px;
  padding: 16px 18px;
  border: 1px solid #e8eef7;
}
.shr-label {
  font-size: 13px;
  color: #6b7a90;
  margin-bottom: 10px;
  font-weight: 600;
}
.shr-disks { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.shr-disks .sd {
  flex: 1;
  min-width: 62px;
  background: #e3efff;
  color: #0052b8;
  text-align: center;
  padding: 10px 6px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
}
.shr-disks .sd.empty {
  background: #f2f5fa;
  color: #b8c2d4;
}
.shr-result { font-size: 13.5px; color: #3a4a63; }
.shr-result b { color: #0052b8; }
.shr-total {
  margin-top: 4px;
  padding: 14px 18px;
  background: #e8f4ff;
  border-radius: 10px;
  font-size: 14px;
  color: #0052b8;
  text-align: center;
  font-weight: 600;
}

/* 文末说明 */
.prose .art-note {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid #eef1f6;
  font-size: 13.5px;
  color: #8a94a6;
  line-height: 1.8;
}

@media (max-width: 640px) {
  .diagram { padding: 16px; }
  .raid-map td { padding: 9px 4px; font-size: 12px; }
  .raid-map th { font-size: 11.5px; padding: 6px 4px; }
}
