/* SSR 专题页与指南中心（/guides、/guides/:id、/chatgpt-*）统一排版样式 */

.seo-main {
  padding: 28px 0 64px;
}

/* 顶栏当前页指示（颜色 + 字重 + 下划线，满足非颜色唯一区分） */
header nav a[aria-current="page"] {
  color: var(--brand-blue, #1555ce);
  font-weight: 680;
  position: relative;
}
header nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2.5px;
  border-radius: 999px;
  background: var(--brand-blue, #1555ce);
}

/* 面包屑 */
.seo-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--brand-muted, #54667e);
  margin-bottom: 18px;
}
.seo-crumb a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}
.seo-crumb a:hover {
  color: var(--brand-blue, #1555ce);
  text-decoration: underline;
}
.seo-crumb .seo-crumb-current {
  color: var(--brand-navy, #10274e);
  font-weight: 550;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60ch;
}

/* 通用专题卡片与按钮 */
.seo-hero {
  background: #fff;
  border: 1px solid rgba(16, 39, 78, 0.09);
  border-radius: 18px;
  padding: 28px 30px;
  margin-bottom: 24px;
  box-shadow: 0 8px 28px rgba(15, 35, 66, 0.045);
}
.seo-hero h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--brand-navy, #10274e);
}
.seo-lead {
  margin: 0 0 18px;
  font-size: 15.5px;
  line-height: 1.7;
  color: #3b4d66;
}
.seo-cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.seo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 620;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.3;
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.seo-btn:hover {
  text-decoration: none;
}
.seo-btn.is-primary {
  background: var(--brand-blue, #1555ce);
  color: #fff;
  box-shadow: 0 4px 14px rgba(21, 85, 206, 0.22);
}
.seo-btn.is-primary:hover {
  background: var(--brand-blue-hover, #1047b2);
  transform: translateY(-1px);
}
.seo-btn.is-ghost {
  background: #eef4fe;
  color: #1549a8;
}
.seo-btn.is-ghost:hover {
  background: #e1ecfc;
}

.seo-card {
  background: #fff;
  border: 1px solid rgba(16, 39, 78, 0.09);
  border-radius: 18px;
  padding: 24px 28px;
  margin-bottom: 22px;
  box-shadow: 0 4px 18px rgba(15, 35, 66, 0.03);
}
.seo-card h2 {
  margin: 0 0 14px;
  font-size: 19px;
  letter-spacing: -0.015em;
  color: var(--brand-navy, #10274e);
}
.seo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.seo-table th,
.seo-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(18, 38, 63, 0.08);
  text-align: left;
}
.seo-table th {
  color: #536780;
  font-weight: 600;
  background: #f8fbff;
}
.seo-list {
  margin: 0;
  padding-left: 20px;
  line-height: 1.85;
  color: #2c3f59;
}
.seo-topic-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.seo-topic-links a {
  padding: 7px 14px;
  border-radius: 999px;
  background: #f1f6fe;
  color: #194ba6;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 550;
}
.seo-topic-links a:hover {
  background: #e2eefc;
  text-decoration: none;
}
.seo-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin: 16px 0 18px;
  padding: 14px 16px;
  background: #f6faff;
  border: 1px solid #d9e6fa;
  border-radius: 12px;
}
.seo-fact {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.seo-fact span {
  font-size: 12px;
  color: #5a6b82;
}
.seo-fact strong {
  font-size: 14px;
  color: var(--brand-navy, #10274e);
}

/* 底部售前/售后咨询条 */
.seo-support-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 28px;
  margin-bottom: 0;
  background: linear-gradient(135deg, #f3f8ff 0%, #ffffff 65%);
  border-color: rgba(21, 85, 206, 0.14);
}
.seo-support-copy strong {
  display: block;
  font-size: 16.5px;
  color: var(--brand-navy, #10274e);
  margin-bottom: 4px;
}
.seo-support-copy p {
  margin: 0;
  font-size: 13.5px;
  color: #52657e;
}
.seo-copy-btn,
.seo-community-btn {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ======================== /guides 目录页 ======================== */

.guide-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid rgba(21, 85, 206, 0.11);
  border-radius: 22px;
  padding: 28px 32px 26px;
  margin-bottom: 28px;
  box-shadow: 0 12px 32px rgba(16, 39, 78, 0.045);
}
.guide-hero-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.guide-hero-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.24;
  letter-spacing: -0.028em;
  font-weight: 700;
  color: var(--brand-navy, #10274e);
}
.guide-hero-sub {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: #4f647e;
}
.guide-hero-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  background: #edf4ff;
  color: #1649a8;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.seo-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 16px;
  background: #ffffff;
  border: 1.5px solid #cfdff5;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(16, 39, 78, 0.03);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.seo-search-bar:focus-within {
  border-color: var(--brand-blue, #1555ce);
  box-shadow: 0 0 0 3.5px rgba(21, 85, 206, 0.12);
}
.guide-search-icon {
  width: 18px;
  height: 18px;
  flex: none;
  color: #6b819e;
}
.seo-search-bar:focus-within .guide-search-icon {
  color: var(--brand-blue, #1555ce);
}
.seo-search-bar input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: var(--brand-navy, #10274e);
  outline: none;
  padding: 5px 0;
}
.seo-search-bar input::placeholder {
  color: #8296b0;
}
.seo-search-bar input::-webkit-search-cancel-button {
  display: none;
}
.seo-search-clear {
  border: 0;
  background: #e8f0fd;
  color: #184aa8;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  flex: none;
  transition: background-color 0.15s ease;
}
.seo-search-clear:hover {
  background: #d6e6fc;
}

/* 热门排查快捷标签 */
.guide-hot-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.guide-hot-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #647994;
  margin-right: 2px;
}
.guide-hot-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #d7e4f6;
  background: #ffffff;
  color: #27456d;
  font-size: 13px;
  font-weight: 520;
  line-height: 1.35;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.guide-hot-chip:hover {
  border-color: #9bbdf0;
  background: #eef5ff;
  color: var(--brand-blue, #1555ce);
}
.guide-hot-chip[aria-pressed="true"] {
  background: var(--brand-blue, #1555ce);
  border-color: var(--brand-blue, #1555ce);
  color: #ffffff;
  font-weight: 600;
}
.guide-hot-chip[aria-pressed="true"]::before {
  content: "✓";
  font-size: 11px;
}

/* 指南列表区（去外层套盒，卡片直接落于浅蓝丝绸底面） */
.guide-section {
  margin-bottom: 8px;
}
.seo-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-inline: 2px;
}
.seo-list-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--brand-navy, #10274e);
}
.seo-list-count {
  font-size: 13px;
  color: #5c718c;
  font-variant-numeric: tabular-nums;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.seo-grid[data-cols="1"] {
  grid-template-columns: minmax(0, 560px);
}
.seo-grid[data-cols="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* 卡片：采用 Modern Web Guidance stretched-link 模式，保证全卡可点且章节直达链接独立可交互 */
.seo-article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 24px 20px;
  background: #ffffff;
  border: 1px solid rgba(16, 39, 78, 0.09);
  border-radius: 18px;
  color: inherit;
  box-shadow: 0 6px 20px rgba(16, 39, 78, 0.038);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.seo-article-card:has(a.guide-card-link:hover) {
  border-color: rgba(21, 85, 206, 0.36);
  box-shadow: 0 14px 32px rgba(16, 39, 78, 0.085);
  transform: translateY(-2px);
}
.seo-article-card:has(a.guide-card-link:focus-visible) {
  outline: 3px solid var(--brand-blue, #1555ce);
  outline-offset: 2px;
}
.seo-article-card a.guide-card-link {
  color: inherit;
  text-decoration: none;
}
.seo-article-card a.guide-card-link:focus-visible {
  outline: none;
}
.seo-article-card a.guide-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.seo-article-card a:not(.guide-card-link),
.seo-article-card button {
  position: relative;
  z-index: 1;
}

.guide-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.guide-card-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: #edf4ff;
  color: #164db0;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.01em;
}
.guide-card-tag[data-tone="warn"] {
  background: #fff4e5;
  color: #b55400;
}
.guide-card-tag[data-tone="fix"] {
  background: #eef8f1;
  color: #1c6b3a;
}
.guide-card-date {
  font-size: 12.5px;
  color: #6b7f98;
  font-variant-numeric: tabular-nums;
}

.guide-card-title {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.44;
  letter-spacing: -0.015em;
  color: var(--brand-navy, #10274e);
  text-wrap: pretty;
  transition: color 0.16s ease;
}
.seo-article-card:has(a.guide-card-link:hover) .guide-card-title {
  color: var(--brand-blue, #1555ce);
}

.guide-card-summary {
  margin: 0;
  font-size: 13.8px;
  line-height: 1.66;
  color: #4f637c;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.guide-card-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #edf2fa;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}
.guide-card-meta {
  color: #647994;
  font-variant-numeric: tabular-nums;
}
.guide-card-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--brand-blue, #1555ce);
  font-weight: 620;
}
.guide-card-arrow {
  display: inline-block;
  transition: transform 0.16s ease;
}
.seo-article-card:has(a.guide-card-link:hover) .guide-card-arrow {
  transform: translateX(3px);
}

/* 搜索命中章节直达 */
.seo-section-hits {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px dashed rgba(21, 85, 206, 0.22);
}
.seo-section-hits-label {
  font-size: 12px;
  color: #4f6582;
  font-weight: 650;
}
.seo-hit-link {
  display: block;
  padding: 7px 11px;
  border-radius: 9px;
  background: #f2f7ff;
  border-left: 3px solid var(--brand-blue, #1555ce);
  color: #133c7c;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.45;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.seo-hit-link:hover {
  background: #e4efff;
  color: #0b2a5c;
  text-decoration: none;
}

.seo-empty {
  margin: 18px 0 0;
  padding: 28px 20px;
  border-radius: 16px;
  border: 1px dashed #c8d9f0;
  background: #ffffff;
  color: #52657e;
  font-size: 14.5px;
  text-align: center;
}
.seo-empty a {
  color: var(--brand-blue, #1555ce);
  font-weight: 600;
}

/* ======================== /guides/:id 文章详情页 ======================== */

.seo-main.is-article {
  max-width: 920px;
}

/* 舒适居中阅读栏（不占正文横向空间） */
.guide-article-card {
  padding: 34px 42px 38px;
  border-radius: 20px;
  margin-bottom: 22px;
}
.guide-article-head {
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e8eff9;
}
.seo-article-meta {
  display: flex;
  align-items: center;
  gap: 10px 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #627690;
  margin-bottom: 12px;
}
.guide-article-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(23px, 2.8vw, 31px);
  line-height: 1.32;
  letter-spacing: -0.022em;
  font-weight: 700;
  color: var(--brand-navy, #10274e);
  text-wrap: balance;
}
.guide-article-cover {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  margin-bottom: 24px;
  border: 1px solid #e0e8f5;
}

/* 左下角轻量悬浮「目录 + 回顶部」（与右下角交流群/客服浮标对称分布、互不遮挡） */
.guide-float-bar {
  position: fixed;
  left: 22px;
  bottom: 24px;
  z-index: 38;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid #c7dbf6;
  box-shadow: 0 8px 22px rgba(16, 39, 78, 0.12);
}
.guide-float-btn,
.guide-float-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  border-radius: 999px;
  color: var(--brand-navy, #10274e);
  background: transparent;
  font-size: 13.5px;
  font-weight: 620;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.guide-float-btn {
  padding: 0 14px;
}
.guide-float-btn svg {
  width: 15px;
  height: 15px;
}
.guide-float-top {
  width: 36px;
  font-size: 15px;
  border-left: 1px solid #e6edf7;
  border-radius: 0 999px 999px 0;
}
.guide-float-btn:hover,
.guide-float-top:hover {
  background: #edf4ff;
  color: var(--brand-blue, #1555ce);
  text-decoration: none;
}

.guide-toc-popover {
  position: fixed;
  inset: auto auto 76px 22px;
  margin: 0;
  width: min(320px, calc(100dvw - 32px));
  max-height: min(68dvh, 480px);
  padding: 16px 14px 14px;
  border-radius: 18px;
  border: 1px solid #cfe0f6;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 46px rgba(16, 39, 78, 0.18);
  color: var(--brand-text, #172b46);
  overflow: hidden;
}
.guide-toc-popover:is(:popover-open, .is-open) {
  display: flex;
  flex-direction: column;
}
.guide-aside-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-navy, #10274e);
  padding: 0 8px 10px;
  border-bottom: 1px solid #ebf1f9;
  margin-bottom: 8px;
}
.guide-aside-title a {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand-blue, #1555ce);
  text-decoration: none;
}
.guide-aside-title a:hover {
  text-decoration: underline;
}
.guide-toc-nav {
  scroll-target-group: auto;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  padding-right: 2px;
  scrollbar-width: thin;
}
.guide-toc-nav .guide-toc-link {
  display: block;
  white-space: normal;
  text-align: left;
  overflow-wrap: anywhere;
  padding: 8px 10px 8px 11px;
  border-left: 2.5px solid transparent;
  border-radius: 0 9px 9px 0;
  font-size: 13px;
  line-height: 1.44;
  color: #445a76;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.guide-toc-link span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.guide-toc-link:hover {
  background: #f3f7ff;
  color: var(--brand-navy, #10274e);
  text-decoration: none;
}
.guide-toc-link:is(:target-current, .target-current) {
  background: #ebf3ff;
  border-left-color: var(--brand-blue, #1555ce);
  color: var(--brand-blue, #1555ce);
  font-weight: 650;
}

/* 相关指南推荐 */
.guide-related {
  margin-bottom: 0;
}
.guide-related-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.guide-related-head h2 {
  margin: 0;
  font-size: 17px;
  color: var(--brand-navy, #10274e);
}
.guide-related-head a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand-blue, #1555ce);
  text-decoration: none;
}
.guide-related-head a:hover {
  text-decoration: underline;
}
.guide-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.guide-related-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 15px 17px;
  border-radius: 14px;
  border: 1px solid #e1eaf6;
  background: #f9fbff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}
.guide-related-card:hover {
  border-color: rgba(21, 85, 206, 0.35);
  background: #f2f7ff;
  transform: translateY(-1px);
  text-decoration: none;
}
.guide-related-card strong {
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--brand-navy, #10274e);
}
.guide-related-card:hover strong {
  color: var(--brand-blue, #1555ce);
}
.guide-related-card small {
  font-size: 12px;
  color: #627792;
}

/* ======================== 响应式断点 ======================== */

@media (max-width: 960px) {
  .seo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .guide-float-bar {
    left: 12px;
    bottom: 12px;
    padding: 3px;
  }
  .guide-float-btn {
    height: 32px;
    padding: 0 10px;
    font-size: 12px;
    gap: 5px;
  }
  .guide-float-top {
    height: 32px;
    width: 30px;
    font-size: 13px;
  }
  .guide-toc-popover {
    inset: auto auto 58px 12px;
  }
  .seo-main {
    padding: 20px 0 48px;
  }
  header .bar nav {
    min-width: 0;
    gap: 14px;
    overflow-x: auto;
    justify-content: flex-start;
    padding-block: 4px;
    padding-right: 4px;
    scrollbar-width: none;
  }
  header .bar nav::-webkit-scrollbar {
    display: none;
  }
  header .bar nav a {
    flex: none;
  }
  header nav a[aria-current="page"]::after {
    bottom: -4px;
  }
  .guide-hero {
    padding: 20px 18px 18px;
    border-radius: 18px;
    margin-bottom: 22px;
  }
  .guide-hero-head {
    margin-bottom: 14px;
  }
  .guide-hero-stat {
    font-size: 12px;
    padding: 4px 10px;
  }
  .seo-search-bar {
    padding: 6px 8px 6px 12px;
  }
  .seo-search-bar input {
    font-size: 14.5px;
  }
  .seo-grid,
  .seo-grid[data-cols="2"] {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .seo-article-card {
    padding: 18px 18px 16px;
    border-radius: 16px;
  }
  .seo-card {
    padding: 18px 18px;
    border-radius: 16px;
  }
  .guide-article-card {
    padding: 20px 18px 24px;
  }
  .guide-related-grid {
    grid-template-columns: 1fr;
  }
  .seo-support-bar {
    padding: 18px;
  }
  .seo-btn {
    padding: 9px 16px;
    font-size: 13.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .seo-article-card,
  .seo-btn,
  .guide-card-arrow,
  .guide-related-card,
  .guide-hot-chip {
    transition: none;
  }
}
