@import url('base.css');



/* Layout safeguard */
.article-cover,
.article-detail,
.article-nav,
.contact-card {
  min-width: 0;
}
.page-header {
  position: relative;
  padding-top: clamp(6rem, 12vh, 8rem);
  padding-bottom: var(--space-xl);
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(146, 64, 14, 0.18) 0%, transparent 55%),
              linear-gradient(180deg, rgba(28,25,23,0.9) 0%, var(--brand-bg) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.page-header h1 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--space-md);
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  color: var(--brand-text-muted);
  font-size: var(--text-sm);
}

.article-meta-bar a {
  color: var(--brand-accent);
}

.article-cover {
  max-width: 900px;
  margin: 0 auto var(--space-lg);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.08);
}

.article-cover img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.article-detail img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 0.75rem;
  margin: var(--space-sm) 0;
}

.article-detail {
  max-width: 900px;
  margin: 0 auto;
  background: var(--brand-bg-light);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 1rem;
  padding: var(--space-lg);
}

.article-detail h2 {
  font-size: var(--text-xl);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.article-detail h2:first-child {
  margin-top: 0;
}

.article-detail h3 {
  font-size: var(--text-lg);
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
  color: #fbbf24;
}

.article-detail p {
  color: var(--brand-text-muted);
  font-size: var(--text-base);
  margin-bottom: var(--space-sm);
}

.article-detail ul,
.article-detail ol {
  padding-left: 1.4rem;
  margin-bottom: var(--space-sm);
  color: var(--brand-text-muted);
}

.article-detail ul {
  list-style: disc;
}

.article-detail ol {
  list-style: decimal;
}

.article-detail li {
  margin-bottom: 0.45rem;
  font-size: var(--text-base);
}

.article-detail strong {
  color: var(--brand-accent);
  font-weight: 700;
}

.article-detail p,
.article-detail li,
.article-detail td {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.article-detail table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-md) 0;
  font-size: var(--text-sm);
}

.article-detail th,
.article-detail td {
  padding: 0.75rem;
  border: 1px solid rgba(255,255,255,0.08);
  text-align: left;
}

.article-detail th {
  background: rgba(146, 64, 14, 0.2);
  color: var(--brand-accent);
}

.article-detail tr:nth-child(even) td {
  background: rgba(255,255,255,0.02);
}

.article-tip {
  background: rgba(253, 224, 71, 0.06);
  border-left: 4px solid var(--brand-accent);
  padding: var(--space-md);
  border-radius: 0 0.75rem 0.75rem 0;
  margin: var(--space-md) 0;
}

.article-tip p {
  margin-bottom: 0;
}

.article-nav {
  max-width: 900px;
  margin: var(--space-lg) auto 0;
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.article-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: var(--space-sm) var(--space-md);
  background: var(--brand-bg-light);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.75rem;
  color: var(--brand-text-muted);
  transition: all 0.2s ease;
}

.article-nav a:hover {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
}

@media (max-width: 768px) {
  .article-detail {
    padding: var(--space-md);
  }

  .article-detail table {
    display: block;
    overflow-x: auto;
  }

  .article-nav {
    flex-direction: column;
  }

  .article-nav a {
    width: 100%;
    justify-content: center;
  }
}
