/* geo.css - GEO 优化新增内容的样式（FAQ / 面包屑 / 相关页面） */

/* 面包屑导航 */
.breadcrumb {
  padding: 14px 0 0;
  font-size: 13px;
}
.breadcrumb .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted, #6b5b4d);
}
.breadcrumb a {
  color: var(--muted, #6b5b4d);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: #c4552a;
}
.breadcrumb .breadcrumb-sep {
  opacity: 0.5;
}
.breadcrumb [aria-current='page'] {
  color: #c4552a;
  font-weight: 600;
}

/* 相关页面内链区块（GEO 内链结构） */
.related-links h2 {
  font-size: 18px;
  margin-bottom: 12px;
}
.related-links nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.related-links nav a {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid rgba(196, 85, 42, 0.35);
  border-radius: 999px;
  font-size: 14px;
  color: #c4552a;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.related-links nav a:hover {
  background: #c4552a;
  color: #fff;
}

/* FAQ 区块 */
#faq dl {
  max-width: 860px;
  margin: 0 auto;
}
#faq dt {
  margin-top: 28px;
}
#faq dt:first-child {
  margin-top: 0;
}
#faq dt h3 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
#faq dt h3::before {
  content: 'Q';
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #d86833, #c4552a);
}
#faq dd {
  margin: 0 0 6px;
  padding-left: 38px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted, #6b5b4d);
}
#faq dd a {
  color: #c4552a;
  text-decoration: underline;
}
#faq dd ol {
  margin: 10px 0 4px;
  padding-left: 22px;
}
#faq dd ol li {
  margin-bottom: 8px;
}
#faq dd ol li:last-child {
  margin-bottom: 0;
}
#faq dd ol strong {
  color: var(--ink, #1c1008);
}
#faq dd p {
  margin: 0 0 8px;
}
:root[data-theme='dark'] #faq dd,
.dark #faq dd {
  color: rgba(255, 255, 255, 0.72);
}
:root[data-theme='dark'] #faq dd ol strong,
.dark #faq dd ol strong {
  color: #fff;
}

/* noscript 内容块（JS 渲染内容的静态回退） */
noscript h2,
noscript h3 {
  margin: 24px 0 10px;
  font-size: 18px;
}
noscript ul {
  padding-left: 22px;
  line-height: 1.9;
  color: var(--muted, #6b5b4d);
}

/* 核心结论区块（首段结论 · GEO 内容健康度优化） */
.takeaway {
  background: linear-gradient(135deg, rgba(216, 104, 51, 0.08), rgba(216, 104, 51, 0.02));
  border-top: 1px solid rgba(216, 104, 51, 0.18);
  border-bottom: 1px solid rgba(216, 104, 51, 0.18);
  padding: 26px 0;
}
.takeaway-label {
  display: inline-block;
  padding: 4px 14px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d86833, #c4552a);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
}
.takeaway p {
  max-width: 900px;
  font-size: 15.5px;
  line-height: 1.9;
}
.takeaway strong {
  color: #c4552a;
}
.takeaway ul {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px 24px;
  max-width: 900px;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted, #6b5b4d);
}
.takeaway ul strong {
  color: var(--ink, #1c1008);
}
:root[data-theme='dark'] .takeaway,
.dark .takeaway {
  background: rgba(216, 104, 51, 0.10);
}
:root[data-theme='dark'] .takeaway ul,
.dark .takeaway ul {
  color: rgba(255, 255, 255, 0.72);
}
:root[data-theme='dark'] .takeaway ul strong,
.dark .takeaway ul strong {
  color: #fff;
}

/* 无障碍隐藏（表格 caption 用） */
.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;
}

/* GEO 数据对比表 */
.geo-table-section h2 {
  font-size: 20px;
  margin-bottom: 16px;
}
.geo-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(28, 16, 8, 0.06);
  font-size: 14.5px;
}
.geo-table th,
.geo-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f0e6db;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}
.geo-table thead th {
  background: #d86833;
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
}
.geo-table tbody tr:last-child td {
  border-bottom: none;
}
.geo-table tbody tr:nth-child(even) {
  background: #faf5ef;
}
.geo-table td:first-child {
  white-space: nowrap;
  font-weight: 600;
}
:root[data-theme='dark'] .geo-table,
.dark .geo-table {
  background: rgba(255, 255, 255, 0.04);
}
:root[data-theme='dark'] .geo-table th,
:root[data-theme='dark'] .geo-table td,
.dark .geo-table th,
.dark .geo-table td {
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
}
:root[data-theme='dark'] .geo-table tbody tr:nth-child(even),
.dark .geo-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}
:root[data-theme='dark'] .geo-table td:first-child,
.dark .geo-table td:first-child {
  color: #fff;
}
@media (max-width: 720px) {
  .geo-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
