:root {
  --primary: #7B68EE;
  --primary-dark: #5A4ACF;
  --secondary: #4CAF50;
  --accent: #FFD700;
  --dark: #2D2D2D;
  --light: #F8F9FA;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background-color: #0a0f1a;
  color: #f8f9fa;
  overflow-x: hidden;
}

.header-scrolled {
  background: rgba(10, 15, 26, 0.95) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.page-hero-detail {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 3rem;
  background:
    radial-gradient(circle at 30% 40%, rgba(123, 104, 238, 0.18) 0%, transparent 35%),
    linear-gradient(180deg, rgba(10, 15, 26, 0) 0%, rgba(10, 15, 26, 0.95) 90%),
    linear-gradient(145deg, #0a0f1a 0%, #141d30 100%);
  overflow: hidden;
}

.hero-detail-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.25;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.article-container {
  max-width: 800px;
  margin: 0 auto;
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.88);
}

.article-body h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #fff;
  position: relative;
  padding-left: 1rem;
}

.article-body h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 5px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  border-radius: 3px;
}

.article-body p {
  margin-bottom: 1.25rem;
}

.article-body img {
  width: 100%;
  border-radius: 1rem;
  margin: 1.5rem 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.article-body ul,
.article-body ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body strong {
  color: var(--accent);
  font-weight: 700;
}

.article-body a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.article-tag {
  display: inline-block;
  padding: 0.35rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(123, 104, 238, 0.12);
  color: #c5bcff;
  border: 1px solid rgba(123, 104, 238, 0.25);
}

.share-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
}

.share-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

.related-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.related-card:hover {
  transform: translateY(-6px);
  border-color: rgba(123, 104, 238, 0.25);
  box-shadow: 0 16px 32px rgba(123, 104, 238, 0.14);
}

.related-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.related-card:hover img {
  transform: scale(1.08);
}

.nav-prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.nav-prev-next a {
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
}

.nav-prev-next a:hover {
  border-color: rgba(123, 104, 238, 0.3);
  color: #fff;
}

@media (max-width: 640px) {
  .nav-prev-next {
    grid-template-columns: 1fr;
  }
}
