/* ========== 新闻详情页样式 ========== */

.article-detail-page {
  letter-spacing: 0;
  background: #fff;
  overflow-x: hidden;
}

.article-crumb-bar {
  margin-top: 48px;
  background: #f3f5f8;
}

.article-crumb-inner {
  max-width: 1220px;
  min-height: 58px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.article-crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: #4d4d4f;
  font-size: 17px;
  line-height: 1.4;
}

.article-crumb i {
  color: #5f6368;
  font-size: 18px;
}

.article-crumb a {
  color: #4d4d4f;
  text-decoration: none;
}

.article-crumb a:hover {
  color: var(--primary-color);
}

.article-shell {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 40px 22px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 52px;
  align-items: start;
}

.article-main {
  min-width: 0;
}

.article-panel {
  min-width: 0;
  max-width: 100%;
}

.article-state {
  padding: 90px 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 16px;
}

.article-panel[hidden] {
  display: none;
}

.article-title {
  max-width: 850px;
  margin: 0 auto 18px;
  text-align: center;
  color: #253238;
  font-size: 30px;
  line-height: 1.35;
  font-weight: 500;
}

.article-meta {
  margin-bottom: 20px;
  text-align: center;
  color: #8c8f94;
  font-size: 15px;
}

.article-summary {
  margin: 0 0 26px;
  padding: 22px 34px;
  background: #f0f2f6;
  color: #42464c;
  font-size: 16px;
  line-height: 1.9;
}

.article-summary p + p {
  margin-top: 8px;
}

.article-summary strong {
  font-weight: 700;
}

.article-body {
  max-width: 100%;
  color: #252b31;
  font-size: 16px;
  line-height: 2;
  overflow-wrap: anywhere;
}

.article-body * {
  max-width: 100% !important;
  box-sizing: border-box;
}

.article-body img {
  max-width: 100% !important;
  height: auto !important;
  display: inline-block;
}

.article-body table {
  max-width: 100%;
  border-collapse: collapse;
}

.article-body iframe,
.article-body video {
  max-width: 100%;
}

.article-body a {
  color: var(--primary-color);
}

.article-neighbor {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid #e3e5e8;
  display: grid;
  gap: 10px;
}

.article-neighbor a,
.article-neighbor span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #4b5560;
  font-size: 15px;
  text-decoration: none;
}

.article-neighbor a:hover {
  color: var(--primary-color);
}

.article-sidebar {
  display: grid;
  gap: 24px;
}

.hot-sidebar {
  padding: 26px 24px 24px;
  background: #f0f2f7;
}

.hot-sidebar h2,
.trial-apply-card h2 {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 500;
  color: #2f363d;
}

.hot-divider {
  height: 1px;
  margin: 24px 0 18px;
  background: #a99c95;
}

.hot-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hot-item {
  border-bottom: 1px dashed #b9aea8;
}

.hot-item:last-child {
  border-bottom: none;
}

.hot-link {
  min-width: 0;
  min-height: 70px;
  padding: 12px 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.hot-link > span:last-child {
  min-width: 0;
}

.hot-rank {
  width: 26px;
  height: 26px;
  margin-top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-size: 18px;
  line-height: 1;
}

.hot-item.is-active .hot-rank {
  border-radius: 3px;
  background: #1f6fb8;
  color: #fff;
  font-size: 16px;
}

.hot-item.is-active .hot-title {
  color: #1f6fb8;
}

.hot-title {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #30363d;
  font-size: 16px;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.hot-date {
  display: block;
  margin-top: 5px;
  color: #91959c;
  font-size: 12px;
  line-height: 1.2;
}

.hot-link:hover .hot-title {
  color: var(--primary-color);
}

.trial-apply-card {
  padding: 26px 24px 24px;
  background: #fff;
  border: 1px solid #e3e5e8;
  box-shadow: 0 8px 20px rgba(31, 111, 184, 0.08);
}

.trial-apply-form {
  margin-top: 22px;
}

.trial-apply-card .form-group {
  margin-bottom: 16px;
}

.trial-apply-card .form-group label {
  font-size: 13px;
}

.trial-apply-card .form-group input,
.trial-apply-card .form-group textarea,
.trial-apply-card .multi-select-trigger {
  border-radius: 8px;
  font-size: 14px;
}

.trial-apply-card .form-group textarea {
  min-height: 96px;
}

.trial-apply-card .multi-select-dropdown {
  max-height: 240px;
  overflow-y: auto;
}

.trial-apply-card .multi-select-option {
  font-size: 14px;
  line-height: 1.4;
}

.trial-apply-card .submit-btn {
  border-radius: 8px;
}

.related-articles {
  min-width: 0;
  max-width: 100%;
  margin-top: 24px;
  border: 1px solid #d8d0cc;
  background: #fff;
}

.related-articles h2 {
  position: relative;
  margin: 0;
  padding: 15px 22px 15px 42px;
  border-bottom: 1px solid #d8d0cc;
  color: #30363d;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 500;
}

.related-articles h2::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 50%;
  width: 3px;
  height: 28px;
  background: #1f6fb8;
  transform: translateY(-50%);
}

.related-list {
  min-width: 0;
  margin: 0;
  padding: 16px 34px 18px 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 64px;
  row-gap: 10px;
  color: #30363d;
}

.related-list li {
  min-width: 0;
  padding-left: 2px;
}

.related-list a {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #30363d;
  font-size: 15px;
  line-height: 1.55;
  text-decoration: none;
}

.related-list a:hover {
  color: var(--primary-color);
}

.hot-loading,
.hot-empty {
  padding: 24px 0;
  color: var(--text-secondary);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 1024px) {
  .article-shell {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .hot-sidebar,
  .trial-apply-card {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .article-crumb-inner {
    min-height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
    align-items: center;
  }

  .article-crumb {
    font-size: 15px;
  }

  .article-shell {
    padding: 32px 16px 60px;
  }

  .article-title {
    font-size: 24px;
    text-align: left;
  }

  .article-meta {
    text-align: left;
    font-size: 14px;
  }

  .article-summary {
    padding: 18px 20px;
    font-size: 15px;
  }

  .article-body {
    font-size: 15px;
    line-height: 1.9;
  }

  .hot-sidebar,
  .trial-apply-card {
    padding: 22px 18px;
  }

  .related-list {
    grid-template-columns: 1fr;
    padding: 16px 20px 18px 34px;
  }
}
