
/* ==========================================================================   校园安全大脑 · 深度问答专题页 /guides/
   依赖：new_common.css（CSS 变量、container、button、site-header、site-footer、contact）
   与 compliance.html 共用同一套设计语言：浅蓝渐变 hero、白底卡片、蓝色主色
   ========================================================================== */

.page-guide {
  min-width: 0;
  background: #fff;
}

.page-guide .site-header {
  height: 67px;
}

.page-guide .site-header > .container,
.page-guide .site-footer > .container {
  width: min(calc(100% - 48px), 1216px);
}

/* ---------- 面包屑 ---------- */
.guide-breadcrumb {
  padding: 18px 0 0;
  background: linear-gradient(180deg, #eff6ff 0%, #f7fbff 100%);
}

.guide-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0;
  padding: 0;
  color: #8a929e;
  font-size: 13px;
  list-style: none;
}

.guide-breadcrumb__list a {
  color: #5a6472;
  text-decoration: none;
}

.guide-breadcrumb__list a:hover {
  color: var(--color-primary);
}

.guide-breadcrumb__list li + li::before {
  margin-right: 6px;
  color: #b6bdc7;
  content: "/";
}

/* ---------- Hero ---------- */
.guide-hero {
  padding: 26px 0 56px;
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

.guide-hero__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.guide-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  padding: 5px 14px;
  border: 1px solid #cfe3fb;
  border-radius: 999px;
  color: var(--color-primary);
  background: #f2f8ff;
  font-size: 13px;
  letter-spacing: 0.3px;
}

.guide-hero h1 {
  margin: 0 0 20px;
  color: #24282f;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.35;
}

.guide-hero__lead {
  max-width: 760px;
  margin: 0 auto;
  color: #5e6570;
  font-size: 16px;
  line-height: 1.85;
}

.guide-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: center;
  margin-top: 26px;
  color: #8a929e;
  font-size: 13px;
}

.guide-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.guide-hero__meta svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 正文布局 ---------- */
.guide-layout {
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(0, 1fr) 268px;
  align-items: start;
  padding: 8px 0 80px;
}

.guide-article {
  min-width: 0;
}

.guide-article > section + section {
  margin-top: 56px;
}

.guide-article h2 {
  margin: 0 0 18px;
  padding-left: 14px;
  border-left: 4px solid var(--color-primary);
  color: #24282f;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.5;
}

.guide-article h3 {
  margin: 30px 0 12px;
  color: #2b3038;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
}

.guide-article p {
  margin: 0 0 16px;
  color: #4d5560;
  font-size: 16px;
  line-height: 1.9;
}

.guide-article strong {
  color: #24282f;
  font-weight: 700;
}

.guide-article a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: #b9d8f8;
  text-underline-offset: 3px;
}

.guide-article a:hover {
  text-decoration-color: var(--color-primary);
}

.guide-article ul,
.guide-article ol {
  margin: 0 0 18px;
  padding-left: 22px;
  color: #4d5560;
  font-size: 16px;
  line-height: 1.9;
}

.guide-article li + li {
  margin-top: 8px;
}

/* ---------- 结论速览 ---------- */
.guide-tldr {
  padding: 26px 30px;
  border: 1px solid #d9e8fb;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #f4f9ff 0%, #fbfdff 100%);
}

.guide-tldr__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: #1f5fa8;
  font-size: 16px;
  font-weight: 700;
}

.guide-tldr__title svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guide-tldr ol {
  margin: 0;
  padding-left: 0;
  list-style: none;
  counter-reset: tldr;
}

.guide-tldr li {
  position: relative;
  margin: 0;
  padding: 0 0 0 34px;
  color: #33404f;
  font-size: 15px;
  line-height: 1.85;
  counter-increment: tldr;
}

.guide-tldr li + li {
  margin-top: 12px;
}

.guide-tldr li::before {
  position: absolute;
  top: 3px;
  left: 0;
  display: grid;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  place-items: center;
  color: #fff;
  background: var(--color-primary);
  content: counter(tldr);
  font-size: 12px;
  font-weight: 700;
}

/* ---------- 提示条 ---------- */
.guide-note {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--color-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #55606e;
  background: var(--color-surface-soft);
  font-size: 15px;
  line-height: 1.85;
}

.guide-note--warn {
  border-left-color: #e6a23c;
  background: #fff9ef;
  color: #6b5a3e;
}

.guide-note--law {
  border-left-color: #4a7c59;
  background: #f4faf5;
  color: #40584a;
}

.guide-note__label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

/* ---------- 表格 ---------- */
.guide-table-wrap {
  margin: 22px 0 26px;
  overflow-x: auto;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.7;
}

.guide-table caption {
  padding: 14px 18px 0;
  color: #8a929e;
  font-size: 13px;
  text-align: left;
}

.guide-table th,
.guide-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--color-line);
  text-align: left;
  vertical-align: top;
}

.guide-table thead th {
  color: #33404f;
  background: #f7fafd;
  font-weight: 700;
  white-space: nowrap;
}

.guide-table tbody tr:last-child td {
  border-bottom: 0;
}

.guide-table td:first-child {
  color: #24282f;
  font-weight: 600;
}

/* ---------- 步骤卡 ---------- */
.guide-steps {
  display: grid;
  gap: 16px;
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.guide-steps li {
  position: relative;
  margin: 0;
  padding: 20px 22px 20px 62px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 2px 10px rgba(46, 88, 139, 0.04);
  counter-increment: step;
}

.guide-steps li::before {
  position: absolute;
  top: 20px;
  left: 22px;
  display: grid;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  place-items: center;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  content: counter(step);
  font-size: 13px;
  font-weight: 700;
}

.guide-steps h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.guide-steps p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
}

/* ---------- 卡片网格 ---------- */
.guide-cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 22px 0 26px;
}

.guide-card {
  padding: 22px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.guide-card h3 {
  margin: 0 0 8px;
  color: #24282f;
  font-size: 16px;
  font-weight: 700;
}

.guide-card p {
  margin: 0;
  color: #5e6570;
  font-size: 14px;
  line-height: 1.8;
}

.guide-card__tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  color: #1f5fa8;
  background: var(--color-primary-soft);
  font-size: 12px;
  font-weight: 600;
}

/* ---------- Sidebar 目录 ---------- */
.guide-sidebar {
  position: sticky;
  top: 88px;
}

.guide-toc {
  padding: 22px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: #fbfcfe;
}

.guide-toc__title {
  margin: 0 0 14px;
  color: #8a929e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.guide-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.guide-toc li {
  counter-increment: toc;
}

.guide-toc li + li {
  margin-top: 2px;
}

.guide-toc a {
  display: block;
  padding: 7px 0 7px 26px;
  color: #5a6472;
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
  text-indent: -26px;
}

.guide-toc a::before {
  margin-right: 8px;
  color: #a8b3c1;
  content: counter(toc, decimal-leading-zero);
  font-size: 12px;
}

.guide-toc a:hover,
.guide-toc a.is-active {
  color: var(--color-primary);
}

.guide-sidebar__cta {
  margin-top: 18px;
  padding: 22px;
  border-radius: var(--radius-md);
  color: #fff;
  background: linear-gradient(150deg, #0565cf 0%, #0a4f9e 100%);
}

.guide-sidebar__cta p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.75;
}

.guide-sidebar__cta strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.guide-sidebar__cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  border-radius: var(--radius-sm);
  color: #0565cf;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.guide-sidebar__cta a:hover {
  background: #eef6ff;
}

/* ---------- FAQ ---------- */
.guide-faq {
  margin-top: 56px;
}

.guide-faq__list {
  margin-top: 22px;
  border-top: 1px solid var(--color-line);
}

.guide-faq__item {
  border-bottom: 1px solid var(--color-line);
}

.guide-faq__item summary {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 19px 4px;
  color: #24282f;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.65;
  cursor: pointer;
  list-style: none;
}

.guide-faq__item summary::-webkit-details-marker {
  display: none;
}

.guide-faq__item summary svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #8a929e;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.guide-faq__item[open] summary svg {
  transform: rotate(180deg);
}

.guide-faq__item[open] summary {
  color: var(--color-primary);
}

.guide-faq__answer {
  padding: 0 4px 22px;
}

.guide-faq__answer p {
  margin: 0 0 12px;
  color: #55606e;
  font-size: 15px;
  line-height: 1.9;
}

.guide-faq__answer p:last-child {
  margin-bottom: 0;
}

/* ---------- 相关阅读 ---------- */
.guide-related {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--color-line);
}

.guide-related__grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 20px;
}

.guide-related__item {
  display: block;
  padding: 20px 22px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.guide-related__item:hover {
  border-color: #b9d8f8;
  box-shadow: var(--shadow-card);
}

.guide-related__item span {
  display: block;
  margin-bottom: 6px;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
}

.guide-related__item strong {
  display: block;
  color: #24282f;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.65;
}

/* ---------- 底部 CTA ---------- */
.guide-cta {
  padding: 56px 0;
  border-top: 1px solid var(--color-line);
  background: #f7fafd;
}

.guide-cta__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.guide-cta h2 {
  margin: 0 0 8px;
  color: #24282f;
  font-size: 24px;
  font-weight: 700;
}

.guide-cta p {
  margin: 0;
  color: #5e6570;
  font-size: 15px;
  line-height: 1.8;
}

.guide-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.guide-cta__actions .button {
  text-decoration: none;
}

.guide-cta__actions .button--ghost {
  border: 1px solid #c8d6e6;
  color: #33404f;
  background: #fff;
}

.guide-cta__actions .button--ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ---------- 数据条 ---------- */
.guide-stats {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 24px 0 28px;
}

.guide-stats__item {
  padding: 20px 18px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: #fbfcfe;
  text-align: center;
}

.guide-stats__item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--color-primary);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}

.guide-stats__item span {
  color: #6b7481;
  font-size: 13px;
  line-height: 1.6;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .guide-layout {
    gap: 36px;
    grid-template-columns: minmax(0, 1fr) 232px;
  }

  .guide-hero h1 {
    font-size: 32px;
  }
}

@media (max-width: 900px) {
  .guide-layout {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 56px;
  }

  .guide-sidebar {
    position: static;
    order: -1;
  }

  .guide-toc {
    padding: 18px;
  }

  .guide-toc ol {
    display: grid;
    gap: 0 20px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .guide-sidebar__cta {
    display: none;
  }

  .guide-hero {
    padding: 20px 0 40px;
  }

  .guide-hero h1 {
    font-size: 27px;
  }

  .guide-hero__lead {
    font-size: 15px;
  }

  .guide-article h2 {
    font-size: 21px;
  }

  .guide-article p,
  .guide-article ul,
  .guide-article ol {
    font-size: 15.5px;
  }

  .guide-tldr {
    padding: 22px 20px;
  }

  .guide-steps li {
    padding: 18px 18px 18px 56px;
  }

  .guide-steps li::before {
    top: 18px;
    left: 18px;
  }

  .guide-cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .guide-hero h1 {
    font-size: 23px;
  }

  .guide-hero__meta {
    gap: 8px 16px;
    font-size: 12px;
  }

  .guide-table {
    font-size: 14px;
  }

  .guide-table th,
  .guide-table td {
    padding: 11px 12px;
  }

  .guide-faq__item summary {
    font-size: 15px;
  }
}

@media print {
  .site-header,
  .site-footer,
  .contact-tools,
  .guide-sidebar,
  .guide-cta,
  .contact {
    display: none;
  }

  .guide-layout {
    display: block;
  }
}

