/* 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-group-title {
  max-width: 860px;
  margin: 42px auto 6px;
  padding-top: 26px;
  border-top: 1px dashed rgba(216, 104, 51, 0.35);
  font-size: 21px;
  font-weight: 700;
  text-align: center;
  color: var(--ink, #1c1008);
}
.faq-group-sub {
  max-width: 860px;
  margin: 0 auto 10px;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted, #6b5b4d);
}
#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;
  }
}

/* ===== 媒体报道与行业关注（首页 #media 板块；内容页可复用） ===== */
.media-coverage-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.media-coverage-list li {
  margin: 0;
}

.media-coverage-list a {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  gap: 8px 20px;
  align-items: baseline;
  padding: 16px 22px;
  background: var(--paper, #fff);
  border: 1px solid var(--line, #ede3d8);
  border-radius: 14px;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.media-coverage-list a:hover {
  border-color: var(--primary, #d86833);
  box-shadow: 0 12px 30px rgba(216, 104, 51, 0.12);
  transform: translateY(-2px);
}

.media-coverage-list a:focus-visible {
  outline: 2px solid var(--primary, #d86833);
  outline-offset: 3px;
}

.mc-date {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--primary, #d86833);
  white-space: nowrap;
}

.mc-title {
  font-weight: 600;
  line-height: 1.7;
  color: var(--ink, #2b2118);
}

.mc-source {
  max-width: 168px;
  text-align: right;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted, #7a6e62);
  background: var(--primary-light, #f9ebe2);
  border-radius: 999px;
  padding: 3px 12px;
  justify-self: end;
}

@media (max-width: 860px) {
  .media-coverage-list a {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 6px 16px;
    padding: 15px 18px;
  }

  .mc-source {
    grid-column: 2;
    justify-self: start;
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .media-coverage-list a {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 14px 16px;
  }

  .mc-source {
    grid-column: 1;
  }

  .mc-date,
  .mc-source {
    font-size: 12.5px;
  }
}
