/* ============================================
   hunkclaw.fun · 异环板块 — 海特洛市档案柜
   "超自然都市开放世界" — 夜空底 + 极光紫 + 霓虹青
   ============================================ */

:root {
  /* 色彩 — 海特洛市夜晚 */
  --yh-bg-deep:    #0a1228;       /* 深夜空蓝 */
  --yh-bg-card:    rgba(20, 25, 50, 0.55); /* 都市玻璃 */
  --yh-bg-card-solid: #131838;
  --yh-border:     rgba(139, 124, 247, 0.25);
  --yh-border-hover: rgba(139, 124, 247, 0.6);

  --yh-primary:    #8b7cf7;       /* 极光紫 */
  --yh-secondary:  #5eead4;       /* 霓虹青 */
  --yh-accent:     #c084fc;       /* 神秘紫粉 */
  --yh-warm:       #fbbf24;       /* 路灯黄 */
  --yh-danger:     #fb7185;       /* 异象红 */
  --yh-success:    #4ade80;

  --yh-text:       #f5f3ff;       /* 月白 */
  --yh-text-mute:  #a8b3cf;
  --yh-text-faint: #5e6a8c;

  --yh-grad-brand: linear-gradient(135deg, #8b7cf7 0%, #5eead4 100%);
  --yh-grad-purple: linear-gradient(135deg, #8b7cf7 0%, #c084fc 100%);
  --yh-grad-night:  linear-gradient(135deg, #1e1b4b 0%, #0a1228 100%);

  --yh-font: 'Space Grotesk', 'Inter', -apple-system,
             'PingFang SC', 'Hiragino Sans GB', sans-serif;
}

/* 字体 */
@font-face-block {}

/* 海特洛市背景 — 多层径向 + 微噪点感 */
body.yh-page {
  background: var(--yh-bg-deep);
  color: var(--yh-text);
  font-family: var(--yh-font);
}
body.yh-page::before {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  background:
    /* 远处霓虹 */
    radial-gradient(circle 400px at 15% 20%, rgba(139,124,247,0.35), transparent 70%),
    radial-gradient(circle 350px at 85% 25%, rgba(94,234,212,0.25), transparent 70%),
    radial-gradient(circle 500px at 80% 80%, rgba(192,132,252,0.22), transparent 70%),
    /* 地面雾 */
    radial-gradient(ellipse 1200px 200px at 50% 100%, rgba(94,234,212,0.10), transparent 70%),
    /* 顶光 */
    radial-gradient(ellipse 1000px 400px at 50% 0%, rgba(139,124,247,0.10), transparent 70%);
  animation: yh-drift 30s ease-in-out infinite alternate;
}
body.yh-page::after {
  /* 细雨粒感 */
  content: '';
  position: fixed; inset: 0; z-index: -1;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.15), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.10), transparent),
    radial-gradient(1px 1px at 80% 20%, rgba(255,255,255,0.18), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(255,255,255,0.10), transparent),
    radial-gradient(1px 1px at 90% 60%, rgba(255,255,255,0.12), transparent);
  background-size: 200px 200px;
  pointer-events: none;
  opacity: 0.4;
}
@keyframes yh-drift {
  0%   { transform: translate(0,0); }
  100% { transform: translate(-3%, 2%); }
}

/* 顶部导航 */
body.yh-page .brand-logo {
  background: var(--yh-grad-purple);
  box-shadow: 0 0 24px rgba(139, 124, 247, 0.4);
}
body.yh-page .nav-link.active {
  background: rgba(139, 124, 247, 0.18);
  box-shadow: inset 0 0 0 1px var(--yh-border-hover);
}

/* 板块 Hero — 海特洛市大字 */
.yh-hero {
  padding: 80px 0 48px;
  position: relative;
  overflow: hidden;
}
.yh-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(139, 124, 247, 0.15);
  border: 1px solid var(--yh-border);
  font-size: 13px; color: var(--yh-primary);
  font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 20px;
}
.yh-hero-title {
  font-family: 'Orbitron', 'Space Grotesk', sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0;
  background: linear-gradient(180deg, #fef3c7 0%, #c084fc 40%, #8b7cf7 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(139, 124, 247, 0.3);
  position: relative;
  display: inline-block;
}
.yh-hero-title::after {
  /* 异象光晕 */
  content: attr(data-text);
  position: absolute; left: 0; top: 0;
  background: linear-gradient(180deg, #5eead4 0%, transparent 80%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: blur(8px);
  opacity: 0.4;
  pointer-events: none;
  z-index: -1;
}
.yh-hero-en {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  letter-spacing: 0.3em;
  color: var(--yh-secondary);
  margin: 8px 0 0;
  text-transform: uppercase;
}
.yh-hero-sub {
  color: var(--yh-text-mute); font-size: 1.05rem;
  max-width: 580px; margin: 24px 0 32px; line-height: 1.7;
}

/* 板块区块标题 */
.yh-section {
  margin: 64px 0 32px;
  display: flex; align-items: baseline; gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--yh-border);
}
.yh-section-title {
  font-size: 1.4rem; font-weight: 700;
  color: var(--yh-text);
  display: flex; align-items: center; gap: 10px;
  letter-spacing: 0.02em;
}
.yh-section-title .icon { font-size: 1.4rem; }
.yh-section-meta {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  color: var(--yh-text-faint);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-left: auto;
}

/* 卡片 — 海特洛市玻璃感 */
.yh-card {
  background: var(--yh-bg-card);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--yh-border);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.yh-card::before {
  /* 极光顶部高光 */
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--yh-primary), transparent);
  opacity: 0.4;
}
.yh-card:hover {
  border-color: var(--yh-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4), 0 0 32px rgba(139,124,247,0.15);
}

/* 新闻流 */
.yh-news-list { display: flex; flex-direction: column; gap: 12px; }
.yh-news {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 20px;
  background: var(--yh-bg-card);
  border: 1px solid var(--yh-border);
  border-radius: 12px;
  text-decoration: none; color: inherit;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.yh-news::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--yh-secondary), transparent);
  opacity: 0.3;
}
.yh-news:hover {
  border-color: var(--yh-border-hover);
  transform: translateX(4px);
}
.yh-news-date {
  flex-shrink: 0;
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  color: var(--yh-secondary);
  letter-spacing: 0.1em;
  padding-top: 2px;
  min-width: 70px;
}
.yh-news-body { flex: 1; min-width: 0; }
.yh-news-title {
  font-weight: 600; color: var(--yh-text);
  margin-bottom: 4px; font-size: 15px;
}
.yh-news-desc {
  font-size: 13px; color: var(--yh-text-mute);
  line-height: 1.5;
}
.yh-news-tag {
  display: inline-block;
  padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 500;
  background: rgba(94,234,212,0.15);
  color: var(--yh-secondary);
  border: 1px solid rgba(94,234,212,0.3);
  margin-left: 8px;
}
.yh-news-tag.tag-update { background: rgba(139,124,247,0.18); color: var(--yh-primary); border-color: rgba(139,124,247,0.3); }
.yh-news-tag.tag-event  { background: rgba(251,191,36,0.18); color: var(--yh-warm); border-color: rgba(251,191,36,0.3); }
.yh-news-tag.tag-news   { background: rgba(94,234,212,0.15); color: var(--yh-secondary); border-color: rgba(94,234,212,0.3); }
.yh-news-arrow {
  margin-left: auto; flex-shrink: 0;
  color: var(--yh-text-faint); font-size: 13px;
  transition: all 0.2s;
}
.yh-news:hover .yh-news-arrow { color: var(--yh-secondary); transform: translateX(4px); }

/* 官方入口 — 横向 grid */
.yh-entries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.yh-entry {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--yh-bg-card);
  border: 1px solid var(--yh-border);
  border-radius: 10px;
  text-decoration: none; color: inherit;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.yh-entry:hover {
  border-color: var(--yh-border-hover);
  background: rgba(139,124,247,0.10);
  transform: translateY(-2px);
}
.yh-entry-icon {
  width: 38px; height: 38px;
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: 18px;
  background: var(--yh-grad-brand);
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(139, 124, 247, 0.3);
}
.yh-entry-name {
  font-weight: 600; color: var(--yh-text); font-size: 14px;
}
.yh-entry-sub {
  font-size: 12px; color: var(--yh-text-mute); margin-top: 2px;
}

/* 角色卡片 */
.yh-characters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.yh-char {
  position: relative; overflow: hidden;
  background: var(--yh-bg-card);
  border: 1px solid var(--yh-border);
  border-radius: 12px;
  text-decoration: none; color: inherit;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.yh-char:hover {
  border-color: var(--yh-border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4), 0 0 32px var(--yh-char-glow, rgba(139,124,247,0.2));
}
.yh-char-art {
  height: 140px;
  background: var(--yh-char-bg, var(--yh-grad-purple));
  display: grid; place-items: center;
  font-size: 64px;
  position: relative;
  overflow: hidden;
}
.yh-char-art::after {
  /* 异象光晕 */
  content: '';
  position: absolute; bottom: -30%; right: -30%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--yh-char-glow, rgba(192,132,252,0.5)) 0%, transparent 70%);
  filter: blur(20px);
  opacity: 0.6;
}
.yh-char-meta { padding: 14px 16px; }
.yh-char-name {
  font-weight: 700; font-size: 16px; color: var(--yh-text);
  display: flex; align-items: center; gap: 8px;
}
.yh-char-id {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px; color: var(--yh-text-faint);
  letter-spacing: 0.1em; margin-top: 4px;
}
.yh-char-role {
  font-size: 12px; color: var(--yh-text-mute);
  margin-top: 6px;
}
.yh-char-element {
  position: absolute; top: 10px; right: 10px;
  font-size: 11px; padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,0.4);
  color: var(--yh-secondary);
  border: 1px solid rgba(94,234,212,0.3);
  backdrop-filter: blur(10px);
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.05em;
}

/* 我的异环笔记 */
.yh-my-notes {
  background: var(--yh-bg-card);
  border: 1px solid var(--yh-border);
  border-radius: 12px;
  padding: 20px;
}
.yh-my-notes-list {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 12px;
}
.yh-my-note {
  padding: 12px 16px;
  background: rgba(94,234,212,0.06);
  border-left: 2px solid var(--yh-secondary);
  border-radius: 6px;
  font-size: 14px;
  color: var(--yh-text);
  text-decoration: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  transition: all 0.2s;
}
.yh-my-note:hover {
  background: rgba(94,234,212,0.12);
  transform: translateX(4px);
}
.yh-my-note-time {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px; color: var(--yh-text-faint);
  letter-spacing: 0.1em; flex-shrink: 0;
}

/* 海特洛市氛围彩蛋 */
.yh-quote {
  margin: 64px 0 32px;
  padding: 32px;
  text-align: center;
  background: var(--yh-bg-card);
  border: 1px solid var(--yh-border);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}
.yh-quote::before {
  content: '';
  position: absolute; inset: -2px;
  background: conic-gradient(from 0deg, var(--yh-primary), var(--yh-secondary), var(--yh-accent), var(--yh-primary));
  filter: blur(20px);
  opacity: 0.2;
  z-index: -1;
}
.yh-quote-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  color: var(--yh-text);
  font-style: italic;
  margin-bottom: 12px;
}
.yh-quote-author {
  font-size: 13px; color: var(--yh-text-mute);
  letter-spacing: 0.05em;
}

/* 数据统计快览 */
.yh-quickstats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 32px;
}
.yh-stat {
  padding: 16px;
  background: var(--yh-bg-card);
  border: 1px solid var(--yh-border);
  border-radius: 10px;
  text-align: center;
}
.yh-stat-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem; font-weight: 700;
  background: var(--yh-grad-brand);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.yh-stat-label {
  font-size: 11px; color: var(--yh-text-mute);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-top: 4px;
}

@media (max-width: 640px) {
  .yh-hero { padding: 48px 0 32px; }
  .yh-news { flex-direction: column; gap: 8px; }
  .yh-news-date { padding-top: 0; }
}