/* 新闻详情页：正文排版、PFT 结构化章节、侧栏目录（default / official） */

/* ---- Banner ---- */
.article-detail-banner {
  background: linear-gradient(180deg, rgb(55 88 249 / 6%) 0%, transparent 100%);
}

html.dark .article-detail-banner {
  background: linear-gradient(180deg, rgb(55 88 249 / 10%) 0%, transparent 100%);
}

.article-detail-banner__title {
  letter-spacing: -0.02em;
}

/* ---- Main card ---- */
.article-detail__main {
  background: #fff;
  border: 1px solid rgb(15 23 42 / 8%);
  border-radius: 0.75rem;
  padding: 1.75rem 1.5rem 2rem;
  box-shadow: 0 8px 28px rgb(15 23 42 / 6%);
}

html.dark .article-detail__main {
  background: #111928;
  border-color: rgb(255 255 255 / 8%);
  box-shadow: 0 8px 28px rgb(0 0 0 / 24%);
}

.article-detail__cover img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

/* ---- Body typography ---- */
.article-detail__content {
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.85;
}

html.dark .article-detail__content {
  color: rgb(255 255 255 / 78%);
}

.article-detail__content .pft-section {
  margin-bottom: 2.5rem;
  scroll-margin-top: 7rem;
}

.article-detail__content .pft-section:last-child {
  margin-bottom: 0;
}

.article-detail__content h2 {
  margin: 0 0 1rem;
  color: #111928;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.35;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgb(55 88 249 / 15%);
}

html.dark .article-detail__content h2 {
  color: #fff;
  border-bottom-color: rgb(55 88 249 / 28%);
}

.article-detail__content p,
.article-detail__content ul,
.article-detail__content table {
  margin: 0 0 1.15rem;
}

.article-detail__content .pft-lead {
  font-size: 1.0625rem;
  color: #374151;
  line-height: 1.9;
}

html.dark .article-detail__content .pft-lead {
  color: rgb(255 255 255 / 88%);
}

.article-detail__content a {
  color: #3758f9;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-detail__content a:hover {
  color: #2746c7;
}

/* ---- Overview accent ---- */
.pft-section--overview {
  padding: 1.25rem 1.25rem 0.25rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgb(55 88 249 / 6%) 0%, rgb(55 88 249 / 2%) 100%);
  border: 1px solid rgb(55 88 249 / 12%);
}

html.dark .pft-section--overview {
  background: rgb(55 88 249 / 8%);
  border-color: rgb(55 88 249 / 20%);
}

/* ---- Methods table ---- */
.pft-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.25rem;
  border-radius: 0.625rem;
  border: 1px solid rgb(15 23 42 / 10%);
}

.pft-checkpoint-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.pft-checkpoint-table th,
.pft-checkpoint-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgb(15 23 42 / 8%);
  text-align: left;
  vertical-align: top;
}

.pft-checkpoint-table th {
  background: #f8fafc;
  color: #111928;
  font-weight: 600;
  white-space: nowrap;
}

html.dark .pft-checkpoint-table th {
  background: rgb(255 255 255 / 6%);
  color: #fff;
}

.pft-checkpoint-table tr:last-child td {
  border-bottom: 0;
}

/* ---- Checklist ---- */
.pft-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.pft-checklist li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.75rem;
  border-bottom: 1px dashed rgb(15 23 42 / 10%);
}

html.dark .pft-checklist li {
  border-bottom-color: rgb(255 255 255 / 10%);
}

.pft-checklist li:last-child {
  border-bottom: 0;
}

.pft-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 0.15rem;
  border: 2px solid #3758f9;
  background: rgb(55 88 249 / 12%);
}

/* ---- FAQ ---- */
.pft-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pft-faq-item {
  border: 1px solid rgb(15 23 42 / 10%);
  border-radius: 0.625rem;
  background: #fff;
  overflow: hidden;
}

html.dark .pft-faq-item {
  background: rgb(255 255 255 / 4%);
  border-color: rgb(255 255 255 / 10%);
}

.pft-faq-item summary {
  padding: 1rem 1.15rem;
  font-weight: 600;
  color: #111928;
  cursor: pointer;
  list-style: none;
}

.pft-faq-item summary::-webkit-details-marker {
  display: none;
}

.pft-faq-item summary::after {
  content: "+";
  float: right;
  color: #3758f9;
  font-size: 1.25rem;
  line-height: 1;
}

.pft-faq-item[open] summary::after {
  content: "−";
}

html.dark .pft-faq-item summary {
  color: #fff;
}

.pft-faq-item p {
  margin: 0;
  padding: 0 1.15rem 1rem;
  color: #4b5563;
}

html.dark .pft-faq-item p {
  color: rgb(255 255 255 / 72%);
}

/* ---- CTA ---- */
.pft-section--cta .pft-cta-box {
  padding: 1.5rem 1.5rem 1.25rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #3758f9 0%, #2746c7 100%);
  color: #fff;
}

.pft-section--cta .pft-cta-box p {
  color: rgb(255 255 255 / 92%);
  margin-bottom: 1.25rem;
}

.pft-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.5rem;
  border-radius: 0.5rem;
  background: #fff;
  color: #3758f9;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.pft-cta-btn:hover {
  background: #f0f4ff;
  color: #2746c7;
}

/* ---- Sidebar ---- */
.article-detail__sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (width >= 1024px) {
  .article-detail__sidebar {
    position: sticky;
    top: 6.5rem;
  }
}

.article-detail__toc,
.article-detail__cta-box,
.article-detail__popular {
  border: 1px solid rgb(15 23 42 / 8%);
  border-radius: 0.75rem;
  background: #fff;
  padding: 1.25rem 1.25rem 1.15rem;
  box-shadow: 0 4px 18px rgb(15 23 42 / 5%);
}

html.dark .article-detail__toc,
html.dark .article-detail__cta-box,
html.dark .article-detail__popular {
  background: #111928;
  border-color: rgb(255 255 255 / 8%);
}

.pft-toc__title,
.article-detail__popular-title,
.article-detail__cta-title {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  color: #111928;
}

html.dark .pft-toc__title,
html.dark .article-detail__popular-title,
html.dark .article-detail__cta-title {
  color: #fff;
}

.pft-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.pft-toc__link {
  display: block;
  padding: 0.45rem 0.65rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: #4b5563;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.pft-toc__link:hover {
  color: #3758f9;
  background: rgb(55 88 249 / 6%);
}

.pft-toc__link.is-active {
  color: #3758f9;
  font-weight: 600;
  border-left-color: #3758f9;
  background: rgb(55 88 249 / 8%);
}

html.dark .pft-toc__link {
  color: rgb(255 255 255 / 72%);
}

.article-detail__cta-desc {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.6;
}

html.dark .article-detail__cta-desc {
  color: rgb(255 255 255 / 65%);
}

.article-detail__cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.75rem;
  border-radius: 0.5rem;
  background: #3758f9;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.article-detail__cta-btn:hover {
  background: #2746c7;
  color: #fff;
}

.article-detail__sidebar-accent {
  display: block;
  width: 2.5rem;
  height: 2px;
  margin-bottom: 1rem;
  background: #3758f9;
}

.article-detail__sidebar-accent--wide {
  width: 4rem;
  margin-bottom: 1.5rem;
}

.article-detail__popular-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-detail__popular-item + .article-detail__popular-item {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgb(15 23 42 / 8%);
}

html.dark .article-detail__popular-item + .article-detail__popular-item {
  border-top-color: rgb(255 255 255 / 8%);
}

.article-detail__popular-link {
  display: block;
  text-decoration: none;
}

.article-detail__popular-item-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #111928;
  line-height: 1.45;
  margin-bottom: 0.25rem;
}

.article-detail__popular-link:hover .article-detail__popular-item-title {
  color: #3758f9;
}

html.dark .article-detail__popular-item-title {
  color: rgb(255 255 255 / 88%);
}

.article-detail__popular-item-date {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* ---- Related ---- */
.article-detail__related-heading {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111928;
}

html.dark .article-detail__related-heading {
  color: #fff;
}

.article-detail__related-grid {
  display: grid;
  gap: 1.25rem;
}

@media (width >= 768px) {
  .article-detail__related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.article-detail__related-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgb(15 23 42 / 8%);
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 4px 16px rgb(15 23 42 / 5%);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-detail__related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgb(55 88 249 / 12%);
}

html.dark .article-detail__related-card {
  background: #111928;
  border-color: rgb(255 255 255 / 8%);
}

.article-detail__related-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.article-detail__related-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-detail__related-media [data-news-img-mirror] {
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
}

.article-detail__related-body {
  padding: 1rem 1.1rem 1.15rem;
}

.article-detail__related-title {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #111928;
  line-height: 1.4;
}

html.dark .article-detail__related-title {
  color: #fff;
}

.article-detail__related-summary {
  margin: 0;
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

html.dark .article-detail__related-summary {
  color: rgb(255 255 255 / 62%);
}

@media (width >= 1024px) {
  .article-detail__main {
    padding: 2.25rem 2.5rem 2.5rem;
  }
}

@media (width <= 1023px) {
  .article-detail__sidebar {
    margin-top: 2rem;
  }
}
