@import url('base.css');



/* =====================================================
   乱世西游官网 - 文章详情页样式
   ===================================================== */

/* 页面 Hero */
.page-hero {
  position: relative;
  min-height: clamp(320px, 42vh, 480px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 0 3.5rem;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 30%, rgba(217, 119, 6, 0.16) 0%, transparent 40%),
    radial-gradient(circle at 20% 70%, rgba(239, 68, 68, 0.1) 0%, transparent 35%),
    linear-gradient(180deg, #2a1810 0%, #1a0f0a 100%);
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.06;
  background-image:
    radial-gradient(ellipse at 50% 50%, rgba(255,255,255,0.9) 1px, transparent 1px);
  background-size: 44px 30px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #fff 25%, #fbbf24 75%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-hero p {
  color: var(--color-muted);
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  max-width: 720px;
  margin: 0 auto;
}

.article-meta-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.article-tag-hero {
  padding: 0.2rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #2a1505;
  background: linear-gradient(135deg, #fbbf24, var(--color-primary));
}

/* 文章内容区 */
.article-detail {
  padding: 4rem 0 5rem;
  position: relative;
}

.article-container {
  max-width: 820px;
  margin: 0 auto;
}

.article-cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2.5rem;
  border: 1px solid rgba(217, 119, 6, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.article-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-content {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--color-muted);
}

.article-content h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin: 2.25rem 0 1rem;
  color: var(--color-text);
}

.article-content h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 1.75rem 0 0.75rem;
  color: var(--color-text);
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content ul,
.article-content ol {
  margin: 0 0 1.25rem 1.5rem;
  padding: 0;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content strong {
  color: var(--color-text);
  font-weight: 700;
}

.article-content img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  border: 1px solid rgba(217, 119, 6, 0.12);
}

.article-content blockquote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--color-primary);
  background: rgba(217, 119, 6, 0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}

.article-content blockquote p {
  margin: 0;
}

/* 步骤卡片 */
.step-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.step-box-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #2a1505;
  background: linear-gradient(135deg, #fbbf24, var(--color-primary));
  flex-shrink: 0;
}

.step-box:nth-child(even) .step-box-number {
  background: linear-gradient(135deg, #a855f7, var(--color-secondary));
  color: #fff;
}

.step-box h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
  color: var(--color-text);
}

.step-box p {
  margin: 0;
  font-size: 0.95rem;
}

/* 文章底部 */
.article-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(217, 119, 6, 0.12);
}

.article-share {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.article-share a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  background: rgba(217, 119, 6, 0.12);
  transition: all 0.2s ease;
}
.article-share a:hover {
  background: var(--color-primary);
  color: #2a1505;
}

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.article-nav a {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}
.article-nav a:hover {
  transform: translateY(-2px);
}

.article-nav-prev {
  text-align: left;
}
.article-nav-next {
  text-align: right;
}

.article-nav-label {
  display: block;
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-bottom: 0.25rem;
}

.article-nav-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--color-text);
}

@media (max-width: 767px) {
  .article-nav {
    grid-template-columns: 1fr;
  }
  .article-nav-next {
    text-align: left;
  }
}
