:root {
  --primary: #7B68EE;
  --secondary: #4CAF50;
  --accent: #FFD700;
  --dark: #0a0f1a;
  --darker: #05070c;
  --light: #F8F9FA;
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background-color: var(--dark);
  color: var(--light);
  overflow-x: hidden;
}

.header-scrolled {
  background: rgba(10, 15, 26, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.page-hero-detail {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: linear-gradient(135deg, #0a0f1a 0%, #1a103c 60%, #0a0f1a 100%);
  overflow: hidden;
}

.page-hero-detail::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('https://file.3xiangyx.com/main/img/20260618/6a33ccc4853e1.jpg') center/cover no-repeat;
  opacity: 0.2;
}

.page-hero-detail::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 15, 26, 0.4) 0%, rgba(10, 15, 26, 0.9) 80%, var(--dark) 100%);
}

.hero-detail-content {
  position: relative;
  z-index: 10;
  width: 100%;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

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

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

.hero-detail-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 900;
  color: white;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.article-tag {
  display: inline-flex;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  background: rgba(123, 104, 238, 0.2);
  border: 1px solid rgba(123, 104, 238, 0.35);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}

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

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

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

.article-body h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  margin: 2.5rem 0 1rem;
  padding-left: 1rem;
  border-left: 4px solid var(--accent);
}

.article-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin: 2rem 0 0.75rem;
}

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

.article-body li {
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
}

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

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

.highlight-box {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(123, 104, 238, 0.08));
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 1.5rem;
  padding: 1.75rem;
  margin: 1.5rem 0;
}

.share-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.share-btn:hover {
  background: rgba(123, 104, 238, 0.2);
  border-color: rgba(123, 104, 238, 0.4);
  color: var(--accent);
  transform: translateY(-3px);
}

.nav-prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-prev-next a {
  padding: 1.25rem;
  border-radius: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: white;
  transition: all 0.3s ease;
}

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

.related-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

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

.related-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.download-section {
  background: linear-gradient(135deg, rgba(123, 104, 238, 0.15) 0%, rgba(76, 175, 80, 0.1) 100%);
  position: relative;
  overflow: hidden;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--accent) 0%, #ffaa00 100%);
  color: #1a1200;
  font-size: 1.25rem;
  font-weight: 800;
  border: 2px solid rgba(255, 215, 0, 0.5);
  box-shadow: 0 8px 0 #b8860b, 0 15px 35px rgba(255, 215, 0, 0.3);
  transition: all 0.3s ease;
}

.download-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 0 #b8860b, 0 25px 50px rgba(255, 215, 0, 0.4);
}

.footer-link {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .page-hero-detail {
    min-height: 45vh;
    padding-top: 90px;
  }

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

  .article-body {
    font-size: 1rem;
  }
}
