/* ===========================================================
   故障排查教程页专用样式（只作用于 body.guide-page）
   参考知乎 / CSDN 博客正文排版：窄栏、大行高、图文分步
   =========================================================== */

.guide-page .guide-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px 56px;
}

/* ---------- 章节内嵌下载按钮（驱动精灵段落下方） ---------- */
.guide-page .guide-dl-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 16px 0 26px;
}

.guide-page .guide-dl-inline .btn-dl {
  display: inline-block;
  width: auto;
  max-width: 100%;
  padding: 13px 28px;
  font-size: 16px;
  line-height: 1.4;
  white-space: nowrap;
  color: #fff !important;
  border: 0;
  border-bottom: 0;
  border-radius: 10px;
  text-decoration: none;
  box-sizing: border-box;
  box-shadow: 0 4px 14px rgba(190, 20, 20, 0.18);
}

.guide-page .guide-dl-inline .btn-dl:hover {
  color: #fff;
  border-bottom: 0;
  text-decoration: none;
}

.guide-page .guide-dl-inline small {
  color: #93a1b3;
  font-size: 12px;
}

@media (max-width: 640px) {
  .guide-page .guide-dl-inline .btn-dl {
    width: 100%;
    text-align: center;
  }
}

/* ---------- 两列布局：正文 + 侧栏 ---------- */
.guide-page .guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: 42px;
  align-items: start;
}

.guide-page .guide-side {
  /* 钉在页面原位，不随滚动跟随 */
  position: static;
  font-size: 14px;
}

.guide-page .side-box {
  border: 1px solid #ececec;
  border-radius: 10px;
  background: #fff;
  padding: 16px 18px;
  margin-bottom: 16px;
}

.guide-page .side-box h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f1f1;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.4;
}

.guide-page .side-box h3::before {
  content: "";
  flex: 0 0 3px;
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: #2f6bd8;
}

.guide-page .side-box ul,
.guide-page .side-box ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-page .side-box li {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.6;
}

.guide-page .side-box li:last-child {
  margin-bottom: 0;
}

.guide-page .side-box a {
  display: block;
  color: #44566d;
  text-decoration: none;
  border: 0;
  transition: color 0.15s;
}

.guide-page .side-box a:hover {
  color: #2f6bd8;
}

.guide-page .side-ver {
  margin-left: 6px;
  color: #a6b2c2;
  font-size: 12px;
  font-weight: 400;
}

/* 最新声卡驱动：带序号 */
.guide-page .side-newest-list {
  counter-reset: nlist;
}

.guide-page .side-newest-list li {
  counter-increment: nlist;
  position: relative;
  padding-left: 25px;
}

.guide-page .side-newest-list li::before {
  content: counter(nlist);
  position: absolute;
  left: 0;
  top: 2px;
  width: 17px;
  height: 17px;
  line-height: 17px;
  text-align: center;
  border-radius: 4px;
  background: #eef4ff;
  color: #2f6bd8;
  font-size: 11px;
  font-weight: 700;
}

/* 前三名用实心蓝，视觉上区分先后 */
.guide-page .side-newest-list li:nth-child(-n+3)::before {
  background: #2f6bd8;
  color: #fff;
}

/* 热门声卡驱动：品牌图标 + 名称 */
.guide-page .side-hot-list a {
  display: flex;
  align-items: center;
  gap: 9px;
}

.guide-page .side-iconwrap {
  flex: 0 0 34px;
  width: 34px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-page .side-icon {
  display: block;
  max-height: 18px;
  width: auto;
  object-fit: contain;
}

.guide-page .side-icon--square {
  max-width: 18px;
}

.guide-page .side-icon--wide {
  max-width: 34px;
}

.guide-page .side-hot-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 侧栏目录：带序号 */
.guide-page .side-toc-list {
  counter-reset: toc;
}

.guide-page .side-toc-list li {
  counter-increment: toc;
  position: relative;
  padding-left: 22px;
  color: #44566d;
}

.guide-page .side-toc-list li::before {
  content: counter(toc);
  position: absolute;
  left: 0;
  top: 1px;
  width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: 4px;
  background: #eef4ff;
  color: #2f6bd8;
  font-size: 11px;
  font-weight: 700;
}

/* 手机端的正文内目录（桌面隐藏） */
.guide-page .guide-toc-inline {
  display: none;
}

@media (max-width: 900px) {
  .guide-page .guide-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .guide-page .guide-side {
    position: static;
    margin-top: 40px;
  }

  .guide-page .side-toc {
    display: none;
  }

  .guide-page .guide-toc-inline {
    display: block;
  }
}

/* ---------- 文章头部 ---------- */
.guide-page .guide-head {
  padding: 8px 0 22px;
  border-bottom: 1px solid #ececec;
  margin-bottom: 26px;
}

.guide-page .guide-head h1 {
  font-size: 28px;
  line-height: 1.42;
  font-weight: 800;
  color: #1a1a1a;
  margin: 10px 0 14px;
  letter-spacing: -0.2px;
}

.guide-page .guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
  color: #999;
}

.guide-page .guide-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.guide-page .guide-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  background: #eef4ff;
  color: #2f6bd8;
  font-size: 12px;
  font-weight: 600;
}

/* ---------- 导语 ---------- */
.guide-page .guide-lead {
  font-size: 16px;
  line-height: 1.95;
  color: #4a4a4a;
  background: #f7f9fc;
  border-left: 3px solid #d5e2f7;
  border-radius: 0 6px 6px 0;
  padding: 16px 18px;
  margin: 0 0 28px;
}

/* ---------- 目录 ---------- */
.guide-page .guide-toc {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 0 0 32px;
  background: #fcfcfc;
}

.guide-page .guide-toc h2 {
  font-size: 15px !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  border: 0 !important;
  color: #333;
  font-weight: 700;
}

.guide-page .guide-toc ol {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 2;
  color: #666;
}

.guide-page .guide-toc a {
  color: #3f6fb5;
  text-decoration: none;
}

.guide-page .guide-toc a:hover {
  text-decoration: underline;
}

/* ---------- 正文 ---------- */
.guide-page .guide-article {
  font-size: 17px;
  line-height: 1.95;
  color: #2b2b2b;
  word-break: break-word;
}

.guide-page .guide-article h2 {
  font-size: 21px;
  font-weight: 800;
  color: #1a1a1a;
  margin: 40px 0 16px;
  padding-left: 12px;
  border-left: 4px solid #2f6bd8;
  line-height: 1.45;
}

.guide-page .guide-article h2:first-of-type {
  margin-top: 8px;
}

.guide-page .guide-article p {
  margin: 0 0 18px;
  color: #2b2b2b;
}

.guide-page .guide-article ul,
.guide-page .guide-article ol {
  margin: 0 0 22px;
  padding-left: 24px;
  color: #2b2b2b;
}

.guide-page .guide-article li {
  margin-bottom: 12px;
  line-height: 1.9;
}

.guide-page .guide-article li::marker {
  color: #9bb8e0;
}

.guide-page .guide-article a {
  color: #2f6bd8;
  text-decoration: none;
  border-bottom: 1px solid #cfe0f7;
}

.guide-page .guide-article a:hover {
  border-bottom-color: #2f6bd8;
}

.guide-page .guide-article strong {
  color: #111;
  font-weight: 700;
}

/* ---------- 分步图文（驱动精灵三步） ---------- */
.guide-page .guide-steps {
  margin: 24px 0 8px;
  padding: 0;
  list-style: none;
  counter-reset: gstep;
}

.guide-page .guide-steps > li {
  position: relative;
  margin: 0 0 34px;
  padding-left: 0;
}

.guide-page .guide-step-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px;
}

.guide-page .guide-step-title::before {
  counter-increment: gstep;
  content: counter(gstep);
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  line-height: 26px;
  text-align: center;
  border-radius: 50%;
  background: #2f6bd8;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.guide-page .guide-steps p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.9;
  color: #333;
}

/* ---------- 汇总页：文章卡片 ---------- */
.guide-page .guide-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0 8px;
  padding: 0;
  list-style: none;
}

.guide-page .guide-cards li {
  margin: 0;
  border: 1px solid #e9edf3;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.guide-page .guide-cards li:hover {
  border-color: #d5e2f7;
  box-shadow: 0 8px 24px rgba(24, 60, 130, 0.1);
  transform: translateY(-2px);
}

.guide-page .guide-cards a {
  display: block;
  color: inherit;
  text-decoration: none;
  border: 0;
}

.guide-page .guide-cards img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 480;
  object-fit: cover;
}

.guide-page .guide-card-body {
  padding: 16px 18px 18px;
}

.guide-page .guide-card-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.45;
}

.guide-page .guide-card-body p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.75;
  color: #6b7787;
}

.guide-page .guide-card-more {
  font-size: 13px;
  font-weight: 600;
  color: #2f6bd8;
}

/* ---------- 汇总页：症状速查表 ---------- */
.guide-page .table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 18px 0 8px;
}

.guide-page .symptom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.7;
  background: #fff;
  border: 1px solid #e9edf3;
  border-radius: 10px;
  overflow: hidden;
}

.guide-page .symptom-table thead th {
  background: #f5f8fd;
  color: #33415a;
  font-weight: 700;
  font-size: 14px;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid #e5ebf4;
  white-space: nowrap;
}

.guide-page .symptom-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #f2f5f9;
  color: #3d4a5c;
  vertical-align: top;
}

.guide-page .symptom-table tbody tr:last-child td {
  border-bottom: 0;
}

.guide-page .symptom-table tbody tr:nth-child(even) {
  background: #fbfcfe;
}

.guide-page .symptom-table a {
  color: #2f6bd8;
  font-weight: 600;
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .guide-page .guide-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 手机端：速查表改成竖排卡片，避免横向滑动 */
@media (max-width: 640px) {
  .guide-page .table-scroll {
    overflow: visible;
  }

  .guide-page .symptom-table {
    min-width: 0;
    border: 0;
    background: transparent;
  }

  .guide-page .symptom-table thead {
    display: none;
  }

  .guide-page .symptom-table tbody tr {
    display: block;
    background: #fff;
    border: 1px solid #e9edf3;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
  }

  .guide-page .symptom-table tbody tr:nth-child(even) {
    background: #fff;
  }

  .guide-page .symptom-table tbody td {
    display: block;
    border: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.7;
  }

  .guide-page .symptom-table tbody td:nth-child(1) {
    font-weight: 600;
    color: #1f2b3d;
    margin-bottom: 6px;
  }

  .guide-page .symptom-table tbody td:nth-child(2) {
    color: #6b7787;
  }

  .guide-page .symptom-table tbody td:nth-child(2)::before {
    content: "可能原因：";
    color: #9aa7b8;
  }

  .guide-page .symptom-table tbody td:nth-child(3) {
    margin-top: 8px;
  }

  .guide-page .symptom-table tbody td:nth-child(3)::before {
    content: "→ 看这篇：";
    color: #9aa7b8;
    font-size: 13px;
  }
}

/* ---------- 首屏封面图 ---------- */
.guide-page .guide-cover {
  margin: 30px 0 34px;
}

.guide-page .guide-cover img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 6px 26px rgba(20, 55, 120, 0.16);
}

/* ---------- 图片 ---------- */
.guide-page figure {
  margin: 0;
}

.guide-page figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.guide-page figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: #999;
  text-align: center;
  line-height: 1.7;
}

/* ---------- 提示框 ---------- */
.guide-page .guide-note {
  margin: 26px 0;
  padding: 14px 18px;
  background: #fffbf0;
  border: 1px solid #f5e6c8;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.85;
  color: #7a5c1e;
}

.guide-page .guide-note strong {
  color: #6a4c10;
}

/* ---------- FAQ ---------- */
.guide-page .guide-faq {
  margin-top: 8px;
}

.guide-page .guide-faq details {
  border: 1px solid #ececec;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 10px;
  background: #fff;
}

.guide-page .guide-faq details[open] {
  background: #fafbfd;
}

.guide-page .guide-faq summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: #1f1f1f;
  line-height: 1.7;
  list-style: none;
}

.guide-page .guide-faq summary::-webkit-details-marker {
  display: none;
}

.guide-page .guide-faq summary::before {
  content: "Q ";
  color: #2f6bd8;
  font-weight: 800;
}

.guide-page .guide-faq details p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.9;
  color: #4a4a4a;
}

/* ---------- 相关阅读 / 底部 ---------- */
.guide-page .guide-related {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.guide-page .guide-related li {
  padding: 12px 0;
  border-bottom: 1px dashed #eee;
  margin: 0;
}

.guide-page .guide-related a {
  font-size: 16px;
  color: #2f6bd8;
  border: 0;
}

.guide-page .guide-related span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: #999;
}

.guide-page .guide-foot {
  margin-top: 40px;
  padding: 18px 20px;
  background: #f7f9fc;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.9;
  color: #667;
}

/* ---------- 下载 CTA ---------- */
.guide-page .guide-cta {
  margin: 34px 0 0;
  padding: 26px 22px;
  text-align: center;
  background: linear-gradient(135deg, #eef4ff 0%, #f7faff 100%);
  border: 1px solid #dde9fb;
  border-radius: 12px;
}

.guide-page .guide-cta h2 {
  border: 0 !important;
  padding: 0 !important;
  margin: 0 0 10px !important;
  font-size: 19px;
  text-align: center;
}

.guide-page .guide-cta p {
  margin: 0 0 18px;
  font-size: 15px;
  color: #556;
  line-height: 1.8;
}

.guide-page .guide-cta .btn-dl {
  display: block;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  padding: 14px 20px;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
  overflow: visible;
  color: #fff !important;
  border: 0;
  border-bottom: 0;
  border-radius: 10px;
  text-decoration: none;
  box-sizing: border-box;
}

.guide-page .guide-cta .btn-dl:hover {
  color: #fff;
  border-bottom: 0;
  text-decoration: none;
}

.guide-page .guide-cta small {
  display: block;
  margin-top: 10px;
  color: #9aa;
  font-size: 12px;
}

/* ---------- 移动端 ---------- */
@media (max-width: 640px) {
  .guide-page .guide-wrap { padding: 0 14px 40px; }
  .guide-page .guide-head h1 { font-size: 22px; }
  .guide-page .guide-article { font-size: 16px; }
  .guide-page .guide-article h2 { font-size: 18px; margin-top: 32px; }
  .guide-page .guide-step-title { font-size: 16px; }
}
