/* ========================================
   News Detail Page - Premium Dark Theme
   ======================================== */

/* Page background */
.news-detail-page { background: #020617; min-height: 100vh; }

/* Hero banner */
.news-detail-hero {
  position: relative;
  padding: 120px 0 60px;
  background: linear-gradient(180deg, rgba(15,23,42,0) 0%, #020617 100%),
              linear-gradient(135deg, rgba(59,130,246,.08) 0%, rgba(124,58,237,.06) 100%);
  overflow: hidden;
}
.news-detail-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 20%, rgba(59,130,246,.07) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(124,58,237,.05) 0%, transparent 60%);
  pointer-events: none;
}
.news-detail-hero .container { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; }

/* Breadcrumb + date row */
.news-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.news-date-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(59,130,246,.12);
  border: 1px solid rgba(59,130,246,.18);
  color: #93c5fd;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.news-date-pill svg { opacity: .7; }
.news-breadcrumb {
  font-size: 13px;
  color: rgba(148,163,184,.7);
}
.news-breadcrumb a {
  color: rgba(148,163,184,.7);
  text-decoration: none;
  transition: color .2s;
}
.news-breadcrumb a:hover { color: #93c5fd; }
.news-breadcrumb .sep { margin: 0 6px; opacity: .4; }

/* Title */
.news-article-title {
  margin: 0 0 20px;
  color: #f1f5f9;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.025em;
}

/* Subtitle */
.news-article-subtitle {
  margin: 0 0 0;
  color: #94a3b8;
  font-size: 18px;
  line-height: 1.7;
  max-width: 720px;
}
.news-article-subtitle:empty { display: none; }

/* Reading time badge */
.news-reading-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(148,163,184,.08);
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
}

/* ---- Article body wrapper ---- */
.news-detail-wrap { padding: 0 0 60px; }
.news-article-shell { max-width: 780px; margin: 0 auto; }

/* Hero image */
.news-hero-image {
  margin: -30px auto 48px;
  max-width: 860px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,.1);
  box-shadow: 0 20px 60px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.03);
  position: relative;
  z-index: 2;
}
.news-hero-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}
/* Hide hero image when it's the nopic placeholder */
.news-hero-image img[src*="nopic"] { display: none; }
.news-hero-image:has(img[src*="nopic"]) { display: none; }

/* Article card */
.news-article-card {
  background: transparent;
  padding: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* ---- Article body typography ---- */
.news-article-body,
.news-article-body p,
.news-article-body li {
  color: #cbd5e1 !important;
  opacity: 1 !important;
  font-size: 17px;
  line-height: 1.85;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.news-article-body p { margin: 0 0 22px; }
.news-article-body > p:first-child {
  font-size: 19px;
  line-height: 1.8;
  color: #e2e8f0 !important;
}

/* Headings */
.news-article-body h2 {
  color: #f1f5f9 !important;
  font-size: 26px;
  font-weight: 700;
  margin: 48px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148,163,184,.1);
  letter-spacing: -.01em;
  line-height: 1.3;
}
.news-article-body h3 {
  color: #e2e8f0 !important;
  font-size: 21px;
  font-weight: 700;
  margin: 36px 0 14px;
  line-height: 1.35;
}
.news-article-body h4 {
  color: #e2e8f0 !important;
  font-size: 18px;
  font-weight: 600;
  margin: 28px 0 12px;
  line-height: 1.4;
}

/* Lists */
.news-article-body ul,
.news-article-body ol {
  padding-left: 0;
  margin: 0 0 24px;
  list-style: none;
}
.news-article-body ul li,
.news-article-body ol li {
  position: relative;
  padding: 10px 16px 10px 20px;
  margin-bottom: 6px;
  background: rgba(15,23,42,.5);
  border: 1px solid rgba(148,163,184,.06);
  border-radius: 12px;
  border-left: 3px solid rgba(59,130,246,.4);
}
.news-article-body ol { counter-reset: ol-counter; }
.news-article-body ol li { counter-increment: ol-counter; padding-left: 44px; }
.news-article-body ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 14px;
  top: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(59,130,246,.15);
  color: #93c5fd;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Links */
.news-article-body a {
  color: #60a5fa !important;
  text-decoration: none;
  border-bottom: 1px solid rgba(96,165,250,.3);
  transition: border-color .2s, color .2s;
}
.news-article-body a:hover {
  color: #93c5fd !important;
  border-bottom-color: #93c5fd;
}

/* Strong */
.news-article-body strong { color: #f1f5f9; font-weight: 600; }

/* Blockquote */
.news-article-body blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  background: rgba(59,130,246,.06);
  border-left: 4px solid rgba(59,130,246,.4);
  border-radius: 0 14px 14px 0;
  color: #94a3b8;
  font-style: italic;
}

/* Tables */
.news-article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,.1);
}
.news-article-body th {
  background: rgba(59,130,246,.1);
  color: #e2e8f0;
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
}
.news-article-body td {
  padding: 10px 16px;
  border-top: 1px solid rgba(148,163,184,.06);
  font-size: 15px;
}

/* Images in body */
.news-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 20px 0;
  border: 1px solid rgba(148,163,184,.08);
}

/* ---- Divider ---- */
.news-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148,163,184,.15), transparent);
  margin: 40px 0;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Tags ---- */
.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 780px;
  margin: 0 auto 32px;
}
.news-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(148,163,184,.06);
  border: 1px solid rgba(148,163,184,.1);
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s;
}
.news-tag:hover {
  background: rgba(59,130,246,.1);
  border-color: rgba(59,130,246,.2);
  color: #93c5fd;
}

/* ---- Share section ---- */
.news-article-actions {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(15,23,42,.5);
  border: 1px solid rgba(148,163,184,.06);
  border-radius: 16px;
}
.news-article-actions p {
  margin: 0;
  font-weight: 600;
  color: #94a3b8;
  font-size: 14px;
}
.news-article-actions .a2a_kit { display: flex; gap: 8px; }
.news-article-actions .a2a_kit a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(148,163,184,.08);
  transition: all .2s;
}
.news-article-actions .a2a_kit a:hover {
  background: rgba(59,130,246,.15);
  transform: translateY(-2px);
}

/* ---- Prev/Next navigation ---- */
.news-article-nav {
  max-width: 780px;
  margin: 24px auto 0;
}
.news-article-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.news-article-nav li a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  border-radius: 16px;
  background: rgba(15,23,42,.5);
  border: 1px solid rgba(148,163,184,.06);
  color: #94a3b8;
  text-decoration: none;
  transition: all .25s ease;
  font-size: 14px;
  line-height: 1.5;
  min-height: 80px;
}
.news-article-nav li a:hover {
  transform: translateY(-2px);
  border-color: rgba(59,130,246,.2);
  background: rgba(15,23,42,.7);
  color: #e2e8f0;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.news-article-nav .next a { text-align: right; }

/* ---- Inquiry section ---- */
.news-inquiry {
  padding: 60px 0 80px;
}
.news-inquiry-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px;
  background: linear-gradient(180deg, rgba(15,23,42,.7), rgba(15,23,42,.5));
  border: 1px solid rgba(148,163,184,.08);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.news-inquiry .title { text-align: center; margin-bottom: 32px; }
.news-inquiry .title h2 {
  color: #f1f5f9;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -.01em;
}
.news-inquiry .title p {
  color: #64748b;
  font-size: 15px;
  margin: 0;
  line-height: 1.6;
}
.news-inquiry .formbox {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}
.news-inquiry .group {
  position: relative;
  margin-bottom: 16px;
}
.news-inquiry .group input,
.news-inquiry .group textarea {
  width: 100%;
  background: rgba(2,6,23,.6) !important;
  border: 1px solid rgba(71,85,105,.4) !important;
  color: #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.news-inquiry .group input:focus,
.news-inquiry .group textarea:focus {
  border-color: rgba(59,130,246,.5) !important;
  box-shadow: 0 0 0 3px rgba(59,130,246,.1);
  outline: none;
}
.news-inquiry .group label {
  color: #64748b !important;
  font-size: 14px;
}
.news-inquiry .submit-group {
  text-align: center;
  margin-top: 8px;
}
.news-inquiry .submit-group button {
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  border: 0;
  color: #fff;
  padding: 14px 40px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all .25s;
  box-shadow: 0 4px 16px rgba(37,99,235,.3);
}
.news-inquiry .submit-group button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,99,235,.4);
}

/* ---- Reading progress bar ---- */
.news-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  z-index: 9999;
  transition: width .1s linear;
  border-radius: 0 2px 2px 0;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .news-detail-hero { padding: 90px 0 40px; }

  /* zhuque mobile hero overflow fix 2026-05-19 */
  .news-detail-hero { overflow-x: clip; }
  .news-detail-hero .container {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }
  .news-meta-row { max-width: 100%; }
  .news-breadcrumb { overflow-wrap: anywhere; }
  .news-article-title { font-size: 28px; }
  .news-article-subtitle { font-size: 16px; }
  .news-hero-image { margin: -20px 16px 32px; border-radius: 16px; }
  .news-article-shell { padding: 0 4px; }
  .news-article-body, .news-article-body p, .news-article-body li { font-size: 16px; line-height: 1.8; }
  .news-article-body > p:first-child { font-size: 17px; }
  .news-article-body h2 { font-size: 22px; margin-top: 36px; }
  .news-article-body h3 { font-size: 19px; }
  .news-article-body ul li, .news-article-body ol li { padding: 8px 12px 8px 16px; }
  .news-article-nav ul { grid-template-columns: 1fr; }
  .news-article-actions { flex-direction: column; gap: 12px; }
  .news-inquiry-inner { padding: 24px 20px; }
  .news-inquiry .title h2 { font-size: 24px; }
}
