/* ========== Layout ========== */
.page-news-detail {
  min-height: 100vh;
  background: #eef6ff;
  padding: 42px 0 64px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
  align-items: flex-start;
}

.article-main {
  background: #fff;
  border-radius: 8px;
  min-height: 520px;
  padding: 28px 34px;
}

.article-header {
  padding-bottom: 28px;
}

.ah-title {
  max-width: 720px;
  font-size: 28px;
  font-weight: 800;
  color: #252b36;
  line-height: 1.9;
  letter-spacing: 0;
  margin-bottom: 28px;
}

.ah-meta {
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
  color: #6d7d92;
  font-size: 14px;
  font-weight: 600;
}

.ah-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.meta-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8fa0b5;
  font-size: 16px;
}

/* ========== Sidebar ========== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sb-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
}

.sb-title {
  font-size: 18px;
  font-weight: 800;
  color: #252b36;
  line-height: 1.3;
  margin-bottom: 18px;
}

/* Related reports */
.report-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.report-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 12px 18px 12px 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, #f2f7ff 0%, #eef5ff 100%);
}

.report-file-icon {
  width: 28px;
  height: 36px;
  position: relative;
  color: #246BFF;
}

.report-file-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid currentColor;
  border-radius: 2px;
  background: rgba(36,107,255,0.05);
}

.file-lines {
  position: absolute;
  left: 6px;
  top: 9px;
  width: 14px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.file-lines::after {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  border-top: 2px solid currentColor;
}

.file-type {
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 28px;
  height: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #246BFF;
  color: #fff;
  font-size: 7px;
  font-weight: 800;
}

.report-name {
  color: #252b36;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.report-desc {
  color: #7b8ca5;
  font-size: 12px;
  line-height: 1.2;
}

.report-link {
  color: #246BFF;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

/* Hot news */
.hot-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hot-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 6px;
  align-items: start;
}

.hot-rank {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  background: #eef2f8;
  color: #8b96a8;
  font-size: 11px;
  font-weight: 800;
}

.hot-item:nth-child(1) .hot-rank { color: #ff4d4f; background: #fff1f0; }
.hot-item:nth-child(2) .hot-rank { color: #246BFF; background: #edf4ff; }
.hot-item:nth-child(3) .hot-rank { color: #f6a23c; background: #fff7e8; }

.hot-link {
  color: #3b4350;
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
}

.hot-date {
  grid-column: 2;
  justify-self: end;
  color: #a0a8b5;
  font-size: 12px;
  font-weight: 600;
}

/* Data board */
.data-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.data-item {
  min-height: 90px;
  padding: 14px;
  border: 1px solid #edf0f5;
  border-radius: 4px;
}

.data-label {
  color: #2f3743;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.data-sub {
  color: #4d5969;
  font-size: 13px;
  line-height: 1.6;
}

.data-value-row {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-top: 8px;
}

.data-value {
  color: #246BFF;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.data-unit {
  color: #246BFF;
  font-size: 16px;
  font-weight: 700;
}

.data-trend {
  margin-left: auto;
  color: #19b31f;
  font-size: 14px;
  font-weight: 800;
}

.btn-view-report {
  width: 100%;
  height: 38px;
  margin-top: 14px;
  border: 1px solid #246BFF;
  border-radius: 4px;
  background: #fff;
  color: #246BFF;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* Custom report */
.custom-report-card {
  position: relative;
  overflow: hidden;
}

.custom-desc {
  color: #6d7d92;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.custom-body {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 12px;
  align-items: center;
}

.custom-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
}

.custom-list li {
  position: relative;
  padding-left: 22px;
}

.custom-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 12px;
  height: 12px;
  border: 2px solid #246BFF;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px #fff;
  background: #246BFF;
}

.custom-img {
  width: 150px;
  height: 126px;
  object-fit: contain;
}

.btn-custom-apply {
  width: 128px;
  height: 40px;
  margin-top: 18px;
  border: none;
  border-radius: 2px;
  background: #246BFF;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .detail-layout { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .page-news-detail { padding: 24px 0 40px; }
  .article-main { padding: 24px 20px; min-height: auto; }
  .ah-title { font-size: 23px; line-height: 1.65; }
  .ah-meta { gap: 14px; }
  .sidebar { grid-template-columns: 1fr; }
  .custom-body { grid-template-columns: 1fr 120px; }
  .custom-img { width: 120px; }
}

@media (max-width: 480px) {
  .detail-layout { gap: 14px; }
  .sb-card { padding: 18px 16px; }
  .report-item { grid-template-columns: 32px minmax(0, 1fr); }
  .report-link { grid-column: 2; }
  .custom-body { grid-template-columns: 1fr; }
}
