* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --gold: #ffc94a;
  --purple-deep: #241543;
  --cream: #fff7e8;
}
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: linear-gradient(180deg, #241543, #180c30);
  color: var(--cream);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(20,10,40,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,201,74,.2);
}
.topbar .back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700; color: var(--gold);
}
.topbar .back:hover { opacity: .8; }
.topbar .home { font-size: 14px; font-weight: 700; color: rgba(255,247,232,.85); white-space: nowrap; }
.topbar .home:hover { color: var(--gold); }

.article {
  max-width: 860px; margin: 0 auto; padding: clamp(30px, 5vw, 60px) clamp(18px, 5vw, 40px) 80px;
}
.article-tag {
  display: inline-block; padding: 4px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 1px;
  color: #3a1d00; background: linear-gradient(135deg, #ffd978, var(--gold));
  margin-bottom: 16px;
}
.article h1 {
  font-size: clamp(22px, 4vw, 34px); line-height: 1.4; font-weight: 900;
  color: var(--gold); margin-bottom: 14px; letter-spacing: 1px;
}
.article .meta { font-size: 13px; color: rgba(255,247,232,.55); padding-bottom: 20px; border-bottom: 1px solid rgba(255,201,74,.25); margin-bottom: 26px; }
.article .content { font-size: 15.5px; color: rgba(255,247,232,.92); }
.article .content h2 { font-size: 20px; color: var(--gold); margin: 28px 0 12px; letter-spacing: 1px; }
.article .content h3 { font-size: 17px; color: var(--gold); margin: 22px 0 10px; }
.article .content p { margin-bottom: 12px; }
.article .content ul, .article .content ol { margin: 8px 0 16px 22px; }
.article .content li { margin-bottom: 8px; }
.article .content table {
  width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-size: 14px;
  background: rgba(255,255,255,.05); border-radius: 10px; overflow: hidden;
}
.article .content th, .article .content td {
  border: 1px solid rgba(255,201,74,.25); padding: 10px 12px; text-align: left; vertical-align: top;
}
.article .content th { background: rgba(255,201,74,.15); color: var(--gold); font-weight: 700; white-space: nowrap; }
.article .content img { width: 100%; border-radius: 12px; margin: 16px 0; border: 1px solid rgba(255,201,74,.25); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.article .content .img-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.article .content .img-grid img { margin: 0; }
.article .content .img-caption { text-align: center; font-size: 12.5px; color: rgba(255,247,232,.5); margin: -6px 0 18px; }
.article .content .note {
  margin: 16px 0; padding: 14px 16px; border-radius: 10px;
  background: rgba(255,201,74,.08); border: 1px solid rgba(255,201,74,.3);
  font-size: 14px; color: rgba(255,247,232,.85);
}
footer { padding: 24px 20px 30px; text-align: center; border-top: 1px solid rgba(255,255,255,.08); }
footer p { font-size: 12.5px; color: rgba(255,247,232,.5); line-height: 1.9; }

@media (max-width: 620px) {
  .article .content table { font-size: 12.5px; }
  .article .content th, .article .content td { padding: 7px 8px; }
  .article .content .img-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
