:root {
  --primary: #FF6B35;
  --secondary: #4ECDC4;
  --accent: #FFD93D;
  --dark: #0a0f1a;
  --darker: #05070c;
  --card-bg: rgba(20, 28, 45, 0.85);
}

* { 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: #fff;
  overflow-x: hidden;
}

.header-scrolled {
  background: rgba(10, 15, 26, 0.95) !important;
  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: flex-end;
  padding: 7rem 0 3rem;
  background: linear-gradient(135deg, #1a0f2e 0%, #0d1f1c 50%, #2a1a0a 100%);
  overflow: hidden;
}

.page-hero-detail::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://filetx.3633yx.com/250419-9333b78083874bbfb4928a2b3cf1779d.jpeg') center/cover no-repeat;
  opacity: 0.2;
}

.page-hero-detail::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--dark) 0%, transparent 60%),
              radial-gradient(circle at 40% 50%, rgba(255, 107, 53, 0.2) 0%, transparent 50%);
}

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

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

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  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: #fff;
  margin-bottom: 1.25rem;
  line-height: 1.25;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.article-tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(255, 107, 53, 0.2);
  border: 1px solid rgba(255, 107, 53, 0.3);
  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: 1.9;
  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: #fff;
  margin: 2.5rem 0 1rem;
  padding-left: 1rem;
  border-left: 4px solid var(--primary);
}

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

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

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

.article-body img {
  width: 100%;
  border-radius: 1rem;
  margin: 1.5rem 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.highlight-box {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.12) 0%, rgba(255, 217, 61, 0.08) 100%);
  border: 1px solid rgba(255, 217, 61, 0.2);
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.highlight-box p {
  margin-bottom: 0.75rem;
}

.highlight-box p:last-child {
  margin-bottom: 0;
}

.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

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

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

.nav-prev-next a {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.25rem;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-prev-next a:hover {
  border-color: rgba(255, 107, 53, 0.3);
  transform: translateY(-3px);
}

.related-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
}

.related-card:hover {
  border-color: rgba(78, 205, 196, 0.25);
  transform: translateY(-5px);
}

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

.download-btn {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--primary) 0%, #ff8c42 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  text-decoration: none;
}

.copy-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.copy-code.copied {
  background: linear-gradient(135deg, var(--secondary), #2dd4bf) !important;
}

.download-btn:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 12px 35px rgba(255, 107, 53, 0.55), inset 0 2px 0 rgba(255, 255, 255, 0.2);
}

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

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

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .page-hero-detail {
    min-height: 45vh;
    padding: 5rem 0 2.5rem;
  }

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