@import url("legal.css?v=9");

.seo-hero {
  margin-bottom: 1.25rem;
}

.seo-hero h1 {
  margin: 0 0 0.5rem;
  font-size: 1.45rem;
  line-height: 1.35;
}

.seo-hero .seo-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.seo-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 1.5rem;
}

.seo-cta .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.seo-cta .btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.seo-links {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
}

.seo-links a {
  color: var(--accent);
  text-decoration: none;
  margin-right: 0.75rem;
}

.seo-faq-more {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.seo-faq-more a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.seo-faq-more a:hover {
  text-decoration: underline;
}

/* SEO 指南页 FAQ：与 .legal-card 正文 h2 / p 排版一致 */
.legal-card .seo-faq {
  margin: 0;
}

.legal-card .seo-faq-item {
  margin: 0;
}

.legal-card .seo-faq-q {
  margin: 0.85rem 0 0.2rem;
  font-size: 0.86rem;
  color: var(--text);
  line-height: 1.5;
}

.legal-card .seo-faq-item:first-child .seo-faq-q {
  margin-top: 0.1rem;
}

.legal-card .seo-faq-q strong {
  font-weight: 700;
}

.legal-card .seo-faq-item > p:not(.seo-faq-q) {
  margin: 0 0 0.65rem;
  font-size: 0.86rem;
  color: #44403c;
  line-height: 1.65;
}

.legal-card .seo-faq-item:last-child > p:not(.seo-faq-q) {
  margin-bottom: 0;
}

.legal-brand-logo {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  flex-shrink: 0;
}

.legal-brand-slug {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ── 教程中心 ── */
.guide-list {
  display: grid;
  gap: 0.75rem;
  margin: 0.5rem 0 0;
}

.guide-card {
  display: block;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.guide-card:hover {
  border-color: rgba(194, 65, 12, 0.35);
  box-shadow: 0 2px 8px rgba(26, 24, 22, 0.06);
}

.guide-card-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.guide-card-summary {
  margin: 0;
  font-size: 0.84rem;
  color: #57534e;
  line-height: 1.55;
}

.guide-card-date {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.guide-empty {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.guide-empty a {
  color: var(--accent);
}

.guide-search {
  margin: 0 0 0.85rem;
  overflow-anchor: none;
}

.guide-search-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.guide-search-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  min-height: 2.75rem;
}

.guide-search-input {
  flex: 1;
  min-width: 0;
  height: 2.75rem;
  padding: 0 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  transition: border-color 0.15s ease, outline-color 0.15s ease;
}

.guide-search-input:focus {
  outline: 2px solid rgba(194, 65, 12, 0.22);
  outline-offset: 0;
  border-color: #fdba74;
}

.guide-search-btn {
  flex-shrink: 0;
  height: 2.75rem;
  padding: 0 1rem;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.guide-search-btn:hover {
  background: #9a3412;
}

.guide-search-btn:active {
  background: #7c2d12;
}

.guide-search-status-slot {
  margin: 0 0 0.85rem;
  overflow-anchor: none;
}

.guide-search-status-slot:not(:empty) {
  min-height: 1.35rem;
}

.guide-search-status {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.guide-search-status.is-empty {
  color: #9a3412;
}

.guide-search-status a {
  margin-left: 0.45rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.guide-search-status a:hover {
  text-decoration: underline;
}

.guide-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  margin: 1.35rem 0 0.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
}

.guide-page-nums {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.guide-page-link,
.guide-page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s ease, background 0.15s ease;
}

.guide-page-link:hover,
.guide-page-num:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.guide-page-link.is-disabled,
.guide-page-num.is-current {
  cursor: default;
}

.guide-page-link.is-disabled {
  opacity: 0.45;
}

.guide-page-num.is-current {
  color: #fff;
  background: var(--accent);
}

.guide-article-head {
  margin-bottom: 1rem;
}

.guide-article-head h1 {
  margin: 0 0 0.5rem;
  font-size: 1.45rem;
  line-height: 1.35;
}

.guide-article-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.guide-article-meta {
  margin: 0.65rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.guide-body {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #44403c;
}

.guide-body h2 {
  margin: 1.35rem 0 0.5rem;
  font-size: 1.05rem;
}

.guide-body h3 {
  margin: 1rem 0 0.4rem;
  font-size: 0.95rem;
}

.guide-body p {
  margin: 0 0 0.75rem;
}

.guide-body ul,
.guide-body ol {
  margin: 0 0 0.85rem;
  padding-left: 1.35rem;
}

.guide-body li {
  margin: 0.25rem 0;
}

.guide-body code {
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: #f5f5f4;
  font-size: 0.84em;
}

.guide-body pre {
  margin: 0 0 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: #1c1917;
  color: #fafaf9;
  overflow-x: auto;
  font-size: 0.8rem;
  line-height: 1.5;
}

.guide-body pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.guide-body a {
  color: var(--accent);
}

.guide-body blockquote {
  margin: 0 0 0.85rem;
  padding: 0.5rem 0 0.5rem 0.85rem;
  border-left: 3px solid var(--border);
  color: var(--muted);
}

.guide-body table {
  width: 100%;
  margin: 0 0 0.85rem;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.guide-body th,
.guide-body td {
  border: 1px solid var(--border);
  padding: 0.4rem 0.55rem;
  text-align: left;
}

.guide-body th {
  background: #fafaf9;
}
