/* ===== 平台注册与备案指南 · 专属样式 ===== */

.guide-page {
  padding: 24px 32px 60px;
  max-width: 900px;
  margin: 0 auto;
  color: var(--text-primary, #1a1a1a);
}

/* 侧栏目录 */
.guide-toc {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 12px 0;
  padding: 0 8px;
}
.guide-toc__item {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-muted, #666);
  font-size: 14px;
  text-decoration: none;
  transition: background .15s, color .15s;
  border-left: 3px solid transparent;
}
.guide-toc__item:hover {
  background: rgba(44, 123, 229, 0.06);
  color: var(--text-primary, #1a1a1a);
}
.guide-toc__item.is-active {
  background: linear-gradient(90deg, rgba(44, 123, 229, 0.12), transparent);
  color: #2c7be5;
  border-left-color: #2c7be5;
  font-weight: 600;
}

/* Hero */
.guide-hero {
  padding: 30px 0 24px;
  border-bottom: 1px solid var(--border-color, #eee);
  margin-bottom: 28px;
}
.guide-hero .eyebrow {
  color: #2c7be5;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 6px;
  font-weight: 600;
}
.guide-hero h1 {
  font-size: 32px;
  margin: 0 0 12px;
  letter-spacing: 0.5px;
}
.guide-hero__sub {
  color: var(--text-muted, #666);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 16px;
  max-width: 720px;
}
.guide-hero__meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted, #888);
}

/* 章节 */
.guide-block {
  margin-bottom: 36px;
  scroll-margin-top: 80px;
}
.guide-block__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 2px solid rgba(44, 123, 229, 0.15);
}
.guide-block__ic {
  font-size: 28px;
  line-height: 1;
}
.guide-block__head h2 {
  font-size: 22px;
  margin: 0;
  color: #1a1a1a;
}
.guide-block__intro {
  color: var(--text-muted, #666);
  font-size: 14.5px;
  line-height: 1.75;
  margin: 0 0 18px;
  padding: 0 4px;
}

/* 每张卡片 */
.guide-card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border-color, #ececec);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  transition: box-shadow .2s, transform .2s;
}
.guide-card:hover {
  box-shadow: 0 6px 20px rgba(44, 123, 229, 0.08);
  transform: translateY(-1px);
}
.guide-card h3 {
  font-size: 17px;
  margin: 0 0 10px;
  color: #1a2340;
  display: flex;
  align-items: center;
  gap: 6px;
}
.guide-card__link {
  font-size: 13.5px;
  margin: 0 0 12px;
  color: var(--text-muted, #666);
}
.guide-card__link a {
  color: #2c7be5;
  text-decoration: none;
  font-weight: 500;
}
.guide-card__link a:hover { text-decoration: underline; }

/* 步骤列表 */
.guide-steps {
  margin: 8px 0 0;
  padding-left: 22px;
  counter-reset: step;
  list-style: none;
}
.guide-steps li {
  position: relative;
  padding: 4px 0 4px 10px;
  line-height: 1.75;
  font-size: 14.5px;
  color: #333;
  counter-increment: step;
}
.guide-steps li::before {
  content: counter(step);
  position: absolute;
  left: -22px;
  top: 6px;
  width: 20px; height: 20px;
  background: linear-gradient(135deg, #2c7be5, #4f46e5);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  line-height: 20px;
  box-shadow: 0 2px 4px rgba(44, 123, 229, 0.35);
}
.guide-steps code {
  background: #f2f4f7;
  color: #c0392b;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 12.5px;
  font-family: "SF Mono", Menlo, Consolas, monospace;
}

/* 无序列表 */
.guide-list {
  margin: 8px 0 0;
  padding-left: 4px;
  list-style: none;
}
.guide-list li {
  padding: 5px 0 5px 20px;
  position: relative;
  font-size: 14.5px;
  color: #333;
  line-height: 1.7;
}
.guide-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 15px;
  width: 6px; height: 6px;
  background: #2c7be5;
  border-radius: 50%;
}
.guide-list a {
  color: #2c7be5;
  text-decoration: none;
}
.guide-list a:hover { text-decoration: underline; }

/* 提示区（黄色警示 / 蓝色提示） */
.guide-card__tips {
  margin-top: 14px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #fff8e6, #fffdf5);
  border-left: 3px solid #f5a623;
  border-radius: 6px;
  font-size: 13.5px;
  color: #7a4d00;
  line-height: 1.75;
}
.guide-card__tips ul {
  margin: 6px 0 0;
  padding-left: 20px;
}
.guide-card__tips li { margin: 2px 0; }
.guide-card__tips strong { color: #7a4d00; }

/* CTA 链接按钮 */
.guide-card__cta {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #2c7be5, #4f46e5);
  color: #fff !important;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.guide-card__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(44, 123, 229, 0.3);
}

/* 结束卡片 */
.guide-outro {
  padding: 30px 26px;
  background: linear-gradient(135deg, rgba(44, 123, 229, 0.06), rgba(79, 70, 229, 0.04));
  border: 1px solid rgba(44, 123, 229, 0.15);
  border-radius: 14px;
  text-align: center;
}
.guide-outro h2 {
  font-size: 22px;
  margin: 0 0 10px;
  color: #1f3a68;
}
.guide-outro p {
  color: #4a5568;
  font-size: 14.5px;
  margin: 0 0 18px;
}
.guide-outro__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.guide-outro__btn {
  padding: 9px 20px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #d0dcef;
  color: #1f3a68;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all .15s;
}
.guide-outro__btn:hover {
  border-color: #2c7be5;
  color: #2c7be5;
  transform: translateY(-1px);
}
.guide-outro__btn--primary {
  background: linear-gradient(135deg, #2c7be5, #4f46e5);
  color: #fff;
  border-color: transparent;
}
.guide-outro__btn--primary:hover {
  color: #fff;
  box-shadow: 0 6px 16px rgba(44, 123, 229, 0.3);
}

/* 移动端 */
@media (max-width: 768px) {
  .guide-page { padding: 16px 14px 40px; }
  .guide-hero h1 { font-size: 24px; }
  .guide-hero__meta { gap: 10px; font-size: 12px; }
  .guide-card { padding: 16px 14px; }
  .guide-block__head h2 { font-size: 18px; }
  .guide-steps li, .guide-list li { font-size: 14px; }
}

/* 暗黑模式 */
:root[data-theme="dark"] .guide-card {
  background: #1e2130;
  border-color: #2a2f42;
}
:root[data-theme="dark"] .guide-card h3 { color: #e2e8f0; }
:root[data-theme="dark"] .guide-steps li { color: #cbd5e0; }
:root[data-theme="dark"] .guide-list li { color: #cbd5e0; }
:root[data-theme="dark"] .guide-card__tips {
  background: #2a2416;
  color: #f5d488;
  border-left-color: #f5a623;
}
:root[data-theme="dark"] .guide-card__tips strong { color: #ffd479; }
:root[data-theme="dark"] .guide-outro {
  background: linear-gradient(135deg, rgba(44, 123, 229, 0.12), rgba(79, 70, 229, 0.08));
  border-color: rgba(79, 70, 229, 0.3);
}
:root[data-theme="dark"] .guide-outro h2 { color: #a5b4fc; }
:root[data-theme="dark"] .guide-outro__btn {
  background: #1e2130;
  border-color: #2a2f42;
  color: #cbd5e0;
}
:root[data-theme="dark"] .guide-block__head h2 { color: #e2e8f0; }
:root[data-theme="dark"] .guide-hero h1 { color: #e2e8f0; }
