@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ===== 变量 ===== */
:root {
  --c-pk: #ff0080;
  --c-pp: #ff00ff;
  --c-bg: #26171f;
  --c-bg2: #1a0f17;
  --c-bg3: #321b28;
  --c-text: #f0d8e8;
  --c-muted: #b899aa;
  --c-card: rgba(50, 20, 38, 0.75);
  --c-border: rgba(255, 0, 128, 0.25);
  --c-glow: rgba(255, 0, 255, 0.15);
  --radius: 10px;
  --bar-h: 64px;
  --font-main: 'Space Grotesk', 'Archivo', system-ui, sans-serif;
  --font-head: 'Archivo', 'Space Grotesk', system-ui, sans-serif;
  --trans: 0.25s ease;
}

/* ===== 重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-main);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--c-pk); text-decoration: none; }
a:hover { color: var(--c-pp); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== 极光背景 ===== */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.aurora-layer {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  mix-blend-mode: screen;
  animation: aurora-float 12s ease-in-out infinite alternate;
}
.aurora-layer--1 {
  width: 70vw; height: 60vw;
  top: -20%; left: -15%;
  background: radial-gradient(ellipse, #ff008066 0%, transparent 70%);
  animation-duration: 13s;
}
.aurora-layer--2 {
  width: 60vw; height: 55vw;
  bottom: -20%; right: -10%;
  background: radial-gradient(ellipse, #ff00ff55 0%, transparent 70%);
  animation-duration: 17s;
  animation-delay: -4s;
}
.aurora-layer--3 {
  width: 50vw; height: 45vw;
  top: 30%; left: 30%;
  background: radial-gradient(ellipse, rgba(255,0,200,0.25) 0%, transparent 70%);
  animation-duration: 21s;
  animation-delay: -8s;
}
@keyframes aurora-float {
  0%   { transform: translate(0,0) scale(1); }
  50%  { transform: translate(4vw, 3vh) scale(1.08); }
  100% { transform: translate(-3vw, 5vh) scale(0.95); }
}
@media (prefers-reduced-motion: reduce) {
  .aurora-layer { animation: none; }
}

/* ===== 侧边导航 aside ===== */
.site-aside {
  position: fixed;
  left: 0; top: 0;
  width: 220px;
  height: 100vh;
  background: rgba(26,15,23,0.92);
  border-right: 1px solid var(--c-border);
  backdrop-filter: blur(12px);
  z-index: 100;
  overflow-y: auto;
  padding: 24px 0 var(--bar-h);
  display: flex;
  flex-direction: column;
  gap: 24px;
  transform: translateX(-100%);
  transition: transform var(--trans);
}
.site-aside.is-open { transform: translateX(0); }

.site-aside nav ul {
  display: flex;
  flex-direction: column;
}
.site-aside nav ul li a {
  display: block;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-text);
  border-left: 3px solid transparent;
  transition: color var(--trans), border-color var(--trans), background var(--trans);
  min-height: 40px;
  display: flex;
  align-items: center;
}
.site-aside nav ul li a:hover,
.site-aside nav ul li a[aria-current="page"] {
  color: var(--c-pk);
  border-left-color: var(--c-pk);
  background: rgba(255,0,128,0.08);
}

.aside-tags, .aside-related, .aside-cats, .aside-info {
  padding: 0 16px;
}
.aside-tags__h2, .aside-related__h2, .aside-cats__h2, .aside-info__h2 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-muted);
  margin-bottom: 4px;
}

/* ===== page-shell ===== */
.page-shell {
  position: relative;
  z-index: 1;
  padding-bottom: calc(var(--bar-h) + 16px);
}

@media (min-width: 900px) {
  .page-shell {
    margin-left: 220px;
  }
  .site-aside {
    transform: translateX(0);
  }
}

/* ===== Hero（首页）===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__slash {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,0,128,0.18) 0%, transparent 50%, rgba(255,0,255,0.12) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
  z-index: 0;
}
.hero__collage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__tile {
  position: absolute;
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
}
.hero__tile--a {
  width: 260px; height: 340px;
  top: 10%; right: 8%;
  background: linear-gradient(135deg, rgba(255,0,128,0.25), rgba(255,0,255,0.15));
  transform: rotate(6deg);
  box-shadow: 0 0 40px rgba(255,0,128,0.2);
  animation: tile-float 6s ease-in-out infinite alternate;
}
.hero__tile--b {
  width: 200px; height: 260px;
  top: 35%; right: 22%;
  background: linear-gradient(225deg, rgba(255,0,255,0.3), rgba(255,0,128,0.1));
  transform: rotate(-4deg);
  box-shadow: 0 0 30px rgba(255,0,255,0.2);
  animation: tile-float 8s ease-in-out infinite alternate-reverse;
}
@keyframes tile-float {
  from { transform: rotate(6deg) translateY(0); }
  to   { transform: rotate(6deg) translateY(-16px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__tile { animation: none; }
}

.hero__center {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 32px 24px;
  max-width: 640px;
}
.hero__h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(90deg, #fff 0%, var(--c-pk) 50%, var(--c-pp) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}
.hero__sub {
  font-size: 1.1rem;
  color: var(--c-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* ===== Inner Hero ===== */
.inner-hero {
  position: relative;
  padding: 64px 32px 48px;
  overflow: hidden;
}
.inner-hero__slash {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,0,128,0.15) 0%, transparent 60%);
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
}
.inner-hero__text {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.inner-hero__text h1 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.25;
  background: linear-gradient(90deg, #fff 0%, var(--c-pk) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}
.inner-hero__desc {
  color: var(--c-muted);
  font-size: 1rem;
}
.inner-hero--tag .inner-hero__slash {
  background: linear-gradient(120deg, rgba(255,0,255,0.15) 0%, transparent 60%);
}
.inner-hero--about .inner-hero__slash {
  background: linear-gradient(120deg, rgba(255,0,128,0.12) 0%, transparent 60%);
}

/* ===== Entry Header ===== */
.entry-header {
  position: relative;
  padding: 48px 32px 32px;
  overflow: hidden;
}
.entry-header__slash {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(255,0,128,0.12) 0%, transparent 55%);
  clip-path: polygon(0 0, 80% 0, 100% 100%, 0 100%);
}
.entry-header h1 {
  position: relative;
  z-index: 1;
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #fff 0%, var(--c-pk) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.entry-header__desc {
  position: relative;
  z-index: 1;
  color: var(--c-muted);
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.entry-meta {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.entry-meta time {
  font-size: 0.8rem;
  color: var(--c-muted);
  background: rgba(255,0,128,0.1);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--c-border);
}

/* ===== 面包屑 ===== */
.breadcrumb {
  position: relative;
  z-index: 2;
  padding: 16px 32px 0;
  font-size: 0.82rem;
  color: var(--c-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.breadcrumb a { color: var(--c-muted); }
.breadcrumb a:hover { color: var(--c-pk); }

/* ===== wrap & main 容器 ===== */
.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}
main > div.wrap > section > article { display: block; }

/* ===== 分区通用 ===== */
.home-cats, .home-content, .home-entries,
.cat-entries, .cat-content,
.entry-body, .entry-tags,
.tag-entries, .tag-content,
.about-body, .about-nav-list,
.privacy-body, .privacy-links {
  padding: 32px 0;
}

/* ===== h2 + subtitle ===== */
h2 {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.3;
}
.subtitle {
  color: var(--c-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* ===== 卡片 - 分类(首页) ===== */
.home-cats {
  display: grid;
  gap: 16px;
}
.cat-card {
  border-radius: var(--radius);
  background: var(--c-card);
  border: 1px solid var(--c-border);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(255,0,128,0.08);
  transition: transform var(--trans), box-shadow var(--trans);
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(255,0,128,0.2), 0 0 0 1px rgba(255,0,255,0.3);
}
.cat-card__link {
  display: block;
  padding: 24px;
  color: inherit;
}
.cat-card__badge {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--c-pk);
  background: rgba(255,0,128,0.1);
  border: 1px solid rgba(255,0,128,0.3);
  border-radius: 20px;
  padding: 2px 10px;
  display: inline-block;
  margin-bottom: 10px;
}
.cat-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.4;
}
.cat-card__desc {
  font-size: 0.88rem;
  color: var(--c-muted);
  margin-bottom: 12px;
  line-height: 1.6;
}
.cat-card__cta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-pk);
}

@media (min-width: 600px) {
  .home-cats { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .home-cats { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

/* ===== 卡片 - 词条 ===== */
.cat-entries, .tag-entries, .about-nav-list, .privacy-links {
  display: grid;
  gap: 14px;
}
.entry-card {
  border-radius: var(--radius);
  background: var(--c-card);
  border: 1px solid var(--c-border);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 16px rgba(255,0,128,0.06);
  transition: transform var(--trans), box-shadow var(--trans);
}
.entry-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(255,0,128,0.15);
}
.entry-card__link {
  display: block;
  padding: 18px 20px;
  color: inherit;
}
.entry-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.4;
}
.entry-card__desc {
  font-size: 0.85rem;
  color: var(--c-muted);
  margin-bottom: 8px;
  line-height: 1.6;
}
.card__date {
  font-size: 0.78rem;
  color: var(--c-muted);
}
.entry-card__go {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-pk);
}

@media (min-width: 600px) {
  .cat-entries, .tag-entries { grid-template-columns: 1fr 1fr; }
  .about-nav-list { grid-template-columns: 1fr 1fr; }
}

/* ===== Chips ===== */
.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.entry-chip {
  border-radius: var(--radius);
  background: rgba(255,0,128,0.08);
  border: 1px solid var(--c-border);
  transition: background var(--trans), border-color var(--trans);
}
.entry-chip:hover {
  background: rgba(255,0,128,0.18);
  border-color: var(--c-pk);
}
.entry-chip a {
  display: block;
  padding: 10px 16px;
  color: var(--c-text);
  font-size: 0.88rem;
  font-weight: 500;
}
.entry-chip__title { display: block; }

/* ===== 标签 ===== */
.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.tag-chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(255,0,255,0.1);
  border: 1px solid rgba(255,0,255,0.25);
  color: var(--c-pp);
  transition: background var(--trans), border-color var(--trans), color var(--trans);
}
.tag-chip:hover {
  background: rgba(255,0,255,0.22);
  border-color: var(--c-pp);
  color: #fff;
}

/* ===== 相关链接 ===== */
.related-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.related-link {
  display: block;
  padding: 8px 12px;
  font-size: 0.85rem;
  color: var(--c-text);
  border-radius: 6px;
  background: rgba(255,0,128,0.06);
  border: 1px solid transparent;
  transition: border-color var(--trans), color var(--trans), background var(--trans);
}
.related-link:hover {
  border-color: var(--c-border);
  background: rgba(255,0,128,0.12);
  color: var(--c-pk);
}

/* ===== 正文 prose ===== */
.prose {
  max-width: 720px;
  color: var(--c-text);
  font-size: 1rem;
  line-height: 1.8;
}
.prose h2, .prose h3 {
  font-family: var(--font-head);
  color: #fff;
  margin: 28px 0 10px;
}
.prose h2 { font-size: 1.3rem; }
.prose h3 { font-size: 1.1rem; }
.prose p { margin-bottom: 16px; }
.prose ul { list-style: disc; padding-left: 24px; margin-bottom: 16px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--c-pk); border-bottom: 1px solid rgba(255,0,128,0.3); }
.prose a:hover { border-bottom-color: var(--c-pk); }
.prose--legal { font-size: 0.95rem; }
.prose--legal h2 { font-size: 1.15rem; color: var(--c-pk); }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform var(--trans), box-shadow var(--trans), background var(--trans);
  min-height: 44px;
}
.btn--hero {
  background: linear-gradient(90deg, var(--c-pk), var(--c-pp));
  color: #fff;
  box-shadow: 0 0 24px rgba(255,0,128,0.4);
}
.btn--hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(255,0,128,0.6);
  color: #fff;
}
.btn--sm {
  padding: 8px 18px;
  font-size: 0.85rem;
  background: linear-gradient(90deg, var(--c-pk), var(--c-pp));
  color: #fff;
  min-height: 40px;
}
.btn--sm:hover {
  transform: translateY(-1px);
  color: #fff;
}
.btn--ghost {
  background: transparent;
  border: 1px solid var(--c-border);
  color: var(--c-text);
}
.btn--ghost:hover {
  border-color: var(--c-pk);
  color: var(--c-pk);
}
.btn--bar {
  background: linear-gradient(90deg, var(--c-pk), var(--c-pp));
  color: #fff;
  padding: 8px 20px;
  font-size: 0.85rem;
  border-radius: 20px;
  min-height: 40px;
}
.btn--bar:hover { color: #fff; opacity: 0.9; }

/* ===== 页脚 ===== */
.site-footer {
  border-top: 1px solid var(--c-border);
  text-align: center;
  padding: 32px 24px;
  margin-top: 16px;
}
.footer-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.site-footer small {
  display: block;
  font-size: 0.78rem;
  color: var(--c-muted);
  line-height: 1.6;
}

/* ===== 底部固定导航条 ===== */
.bottom-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bar-h);
  background: rgba(26, 15, 23, 0.97);
  border-top: 1px solid var(--c-border);
  backdrop-filter: blur(16px);
  z-index: 200;
}
.bottom-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 16px;
  gap: 8px;
}
.bottom-bar__left, .bottom-bar__right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.bottom-bar__right {
  justify-content: flex-end;
}
.bottom-bar__link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 8px;
  font-size: 0.75rem;
  color: var(--c-muted);
  font-weight: 500;
  white-space: nowrap;
  min-height: 44px;
  border-radius: 6px;
  transition: color var(--trans);
}
.bottom-bar__link:hover { color: var(--c-pk); }
.icon-dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--c-pk);
  flex-shrink: 0;
}
.bottom-bar__brand {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 8px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.bottom-bar__brand:hover { color: var(--c-pp); }

/* 桌面时底部条左移 */
@media (min-width: 900px) {
  .bottom-bar {
    left: 220px;
  }
}

/* ===== 汉堡/切换（移动端侧边栏触发）===== */
.aside-toggle {
  position: fixed;
  top: 14px; left: 14px;
  z-index: 300;
  width: 40px; height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(26,15,23,0.9);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}
.aside-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform var(--trans), opacity var(--trans);
}
.aside-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.aside-toggle.is-active span:nth-child(2) { opacity: 0; }
.aside-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 900px) {
  .aside-toggle { display: none; }
}

/* 遮罩 */
.aside-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
}
.aside-overlay.is-visible { display: block; }

/* ===== 动画：stagger list ===== */
@keyframes slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cat-card, .entry-card {
  animation: slide-up 0.4s ease both;
}
.cat-card:nth-child(1) { animation-delay: 0.05s; }
.cat-card:nth-child(2) { animation-delay: 0.10s; }
.cat-card:nth-child(3) { animation-delay: 0.15s; }
.cat-card:nth-child(4) { animation-delay: 0.20s; }
.entry-card:nth-child(1) { animation-delay: 0.05s; }
.entry-card:nth-child(2) { animation-delay: 0.10s; }
.entry-card:nth-child(3) { animation-delay: 0.15s; }
.entry-card:nth-child(4) { animation-delay: 0.20s; }
.entry-card:nth-child(5) { animation-delay: 0.25s; }
.entry-card:nth-child(6) { animation-delay: 0.30s; }

@media (prefers-reduced-motion: reduce) {
  .cat-card, .entry-card { animation: none; }
}

/* ===== 响应式补丁 ===== */
@media (max-width: 899px) {
  .inner-hero { padding: 48px 20px 32px; }
  .entry-header { padding: 36px 20px 24px; }
  .breadcrumb { padding: 14px 20px 0; }
  .wrap { padding: 0 16px; }
  .hero__tile--a, .hero__tile--b { display: none; }
}
@media (max-width: 599px) {
  .cat-entries, .tag-entries, .about-nav-list { grid-template-columns: 1fr; }
  .hero__h1 { font-size: 1.8rem; }
  .bottom-bar__link { font-size: 0.7rem; padding: 10px 6px; }
  .bottom-bar__brand { font-size: 0.68rem; }
}

/* ===== 全息微光 hover ===== */
.cat-card::before, .entry-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.cat-card, .entry-card { position: relative; }
