/* ============================================================
   BlockList · 炫酷视觉增强层
   开屏 / 极光背景 / 渐变文字 / 辉光卡片 / 装饰元素
   ============================================================ */

/* ---------- 共享：渐变描边文字 ---------- */
.grad-text {
  background: linear-gradient(90deg, #a78bfa, #6366f1, #22d3ee, #ec4899, #a78bfa);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradFlow 6s linear infinite;
}
@keyframes gradFlow { to { background-position: 300% 0; } }

/* ============================================================
   炫酷开屏
   ============================================================ */
.splash.sx {
  background: radial-gradient(circle at 50% 45%, #150f2e 0%, #0a0a16 62%, #050508 100%);
  overflow: hidden;
}

/* 动态极光底 */
.sx-bg {
  position: absolute; inset: -20%;
  background:
    radial-gradient(ellipse 60% 45% at 25% 20%, rgba(139,92,246,0.5), transparent 60%),
    radial-gradient(ellipse 55% 45% at 75% 30%, rgba(99,102,241,0.4), transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 85%, rgba(236,72,153,0.28), transparent 60%),
    radial-gradient(ellipse 40% 35% at 12% 75%, rgba(34,211,238,0.25), transparent 60%);
  filter: blur(20px) saturate(140%);
  animation: sxBgFloat 14s ease-in-out infinite alternate;
}
@keyframes sxBgFloat {
  0% { transform: translate3d(-3%,-2%,0) rotate(-3deg) scale(1); }
  100% { transform: translate3d(3%,2%,0) rotate(3deg) scale(1.1); }
}

/* 旋转光环 */
.sx-orbit {
  position: absolute; width: 520px; height: 520px;
  top: 50%; left: 50%; margin: -260px 0 0 -260px;
  animation: sxSpin 22s linear infinite;
  opacity: 0.4;
}
.sx-orbit-inner {
  width: 100%; height: 100%; border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: #a78bfa; border-right-color: #22d3ee;
  border-bottom-color: #ec4899; border-left-color: #6366f1;
  box-shadow: 0 0 60px rgba(167,139,250,0.25), inset 0 0 60px rgba(34,211,238,0.12);
}
@keyframes sxSpin { to { transform: rotate(360deg); } }

.sx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* 星爆层 */
.sx-burst-go { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.sx-burst-p {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  animation: sxBurstFly 0.85s ease-out forwards;
}
@keyframes sxBurstFly {
  0% { opacity: 1; transform: translate(-50%,-50%) scale(1); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--bx)), calc(-50% + var(--by))) scale(0.2); }
}

/* Logo */
.sx-logo {
  position: relative; z-index: 10;
  font-size: 96px; font-weight: 800; letter-spacing: -2px;
  display: flex; align-items: baseline;
  font-family: 'InterDisplay', 'HarmonyOS Sans SC', sans-serif;
  animation: sxFloat 5s ease-in-out 0.2s infinite;
}
@keyframes sxFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-22px); }
}
.sx-logo-main { color: #fff; text-shadow: 0 0 30px rgba(167,139,250,0.7); }
.sx-logo-accent {
  background: linear-gradient(90deg, #a78bfa, #22d3ee, #ec4899);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 0 20px rgba(236,72,153,0.5));
}
@media (max-width: 640px) {
  .sx-logo { font-size: 60px; }
  .sx-progress { width: 96px; height: 96px; }
  .sx-ring { width: 96px; height: 96px; }
}

/* 语录 */
.sx-quote {
  position: relative; z-index: 10; max-width: 520px;
  margin-top: 22px; text-align: center;
  font-size: 15px; color: rgba(255,255,255,0.66); line-height: 1.7;
  min-height: 30px;
}
.sx-quote-text::after { content: '”'; }

/* 进度环 */
.sx-progress { position: relative; z-index: 10; margin-top: 34px; width: 120px; height: 120px; }
.sx-ring { width: 120px; height: 120px; transform: rotate(-90deg); }
.sx-ring-track { stroke: rgba(255,255,255,0.12); }
.sx-ring-fill {
  stroke: #a78bfa; stroke-linecap: round;
  transition: stroke-dashoffset 0.1s linear;
  filter: drop-shadow(0 0 6px rgba(139,92,246,0.8));
}
.sx-pct {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 700; color: #fff;
}
.sx-pct i { font-style: normal; font-size: 13px; color: rgba(255,255,255,0.5); margin-left: 2px; }

/* 状态文案 */
.sx-status {
  position: relative; z-index: 10; margin-top: 14px;
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

/* 开口一闪 */
.splash.sx::after {
  content: ''; position: absolute; inset: 0; z-index: 30; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 30%, rgba(255,255,255,0.18) 55%, transparent 75%);
  opacity: 0; transition: opacity 0.4s;
}
.splash.sx.sx-done::after { opacity: 1; animation: sxFlash 0.4s ease-out; }
@keyframes sxFlash { 0% { opacity: 0.9; } 100% { opacity: 0; } }

/* 收场：整体淡出 + 缩小 */
.splash.sx.sx-done { transition: transform 0.5s ease, opacity 0.5s ease; transform: scale(1.06); }
.splash.sx.sx-hidden { opacity: 0; transform: scale(1.15); pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .sx-orbit, .sx-bg { animation: none; }
  .splash.sx { transition: opacity 0.3s; }
}

/* ============================================================
   极光画布（全站背景）
   ============================================================ */
.aurora-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -3; pointer-events: none;
}

/* ============================================================
   首页 Hero
   ============================================================ */
.hero {
  position: relative; text-align: center;
  padding: 84px 24px 108px;
  min-height: calc(100vh - 64px);
  min-height: calc(100svh - 64px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid transparent;
}
.hero-eyebrow {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 4px; text-transform: uppercase; color: rgba(255,255,255,0.6);
  padding: 8px 18px; border: 1px solid rgba(139,92,246,0.4); border-radius: 40px;
  background: rgba(139,92,246,0.08); backdrop-filter: blur(8px);
  animation: heroRise 0.9s 0.1s ease both;
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 10px #22d3ee; animation: dotPulse 1.6s infinite; }
@keyframes dotPulse { 0%,100%{opacity:1;} 50%{opacity:0.2;} }
.hero-title {
  position: relative; font-size: clamp(40px, 7vw, 72px); font-weight: 800; line-height: 1.12;
  font-family: 'InterDisplay', 'HarmonyOS Sans SC', sans-serif;
  letter-spacing: -1px; margin-top: 26px;
  animation: heroRise 0.9s 0.25s ease both;
}
.hero-title .grad-text { animation: gradFlow 6s linear infinite, heroRise 0.9s 0.25s ease both; }
@keyframes heroRise {
  0% { opacity: 0; transform: translateY(50px); filter: blur(10px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}
.hero-sub {
  position: relative; color: rgba(255,255,255,0.66); font-size: clamp(15px, 2.2vw, 18px);
  max-width: 600px; margin-top: 22px; line-height: 1.85;
  animation: heroRise 0.9s 0.4s ease both;
}
.hero-cta {
  position: relative; margin-top: 38px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
  animation: heroRise 0.9s 0.55s ease both;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 34px; border-radius: 40px; font-size: 15px; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s ease, background 0.4s ease;
  position: relative; overflow: hidden;
  will-change: transform;
}
.btn-primary {
  color: #fff; background: linear-gradient(135deg, #8b5cf6, #6366f1, #22d3ee);
  background-size: 200% 200%; animation: gradFlow 6s ease-in-out infinite;
  box-shadow: 0 8px 30px rgba(99,102,241,0.45), 0 0 0 rgba(99,102,241,0);
  animation: gradFlow 6s ease-in-out infinite, btnBreath 3.2s ease-in-out infinite;
}
.btn-primary:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 18px 48px rgba(99,102,241,0.55), 0 0 34px rgba(139,92,246,0.35);
}
.btn-primary:active { transform: translateY(-1px) scale(0.98); box-shadow: 0 8px 22px rgba(99,102,241,0.4); }
@keyframes btnBreath {
  0%, 100% { box-shadow: 0 8px 30px rgba(99,102,241,0.45), 0 0 0 rgba(139,92,246,0); }
  50% { box-shadow: 0 8px 34px rgba(99,102,241,0.55), 0 0 26px rgba(139,92,246,0.28); }
}
.btn-ghost {
  color: #fff; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: rgba(167,139,250,0.6); background: rgba(139,92,246,0.12);
  box-shadow: 0 14px 34px rgba(139,92,246,0.2);
}

/* 装饰浮动方块 */
.hero-float { position: absolute; border-radius: 20px; opacity: 0.5; filter: blur(1px); animation: floatY 7s ease-in-out infinite; pointer-events: none; }
.hero-float.f1 { width: 64px; height: 64px; left: 8%; top: 22%; background: linear-gradient(135deg,#8b5cf6,#6366f1); }
.hero-float.f2 { width: 44px; height: 44px; right: 10%; top: 26%; background: linear-gradient(135deg,#ec4899,#f97316); animation-delay: -2s; border-radius: 12px; }
.hero-float.f3 { width: 32px; height: 32px; left: 14%; bottom: 20%; background: linear-gradient(135deg,#22d3ee,#6366f1); animation-delay: -4s; border-radius: 9px; }
.hero-float.f4 { width: 96px; height: 96px; right: 7%; bottom: 18%; border-radius: 24px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.03); backdrop-filter: blur(4px); animation-delay: -5s; }
@keyframes floatY { 0%,100%{ transform: translateY(0) rotate(0deg);} 50%{ transform: translateY(-20px) rotate(8deg);} }

/* Hero 底部光带 */
.hero::before {
  content: ''; position: absolute; bottom: 0; left: 12%; right: 12%; height: 2px;
  background: linear-gradient(90deg, transparent, #8b5cf6, #22d3ee, #ec4899, transparent);
  filter: blur(1px); opacity: 0.8;
}

/* Hero 向下滚动指示 */
.hero-scroll {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: 4px; color: rgba(255,255,255,0.5);
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  animation: heroRise 0.9s 0.7s ease both;
}
.hero-scroll::after {
  content: ''; width: 1px; height: 28px; display: block;
  background: linear-gradient(180deg, #8b5cf6, transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{ opacity:0.3; transform: scaleY(0.7);} 50%{ opacity:1; transform: scaleY(1);} }

/* ============================================================
   开屏 → 内容 渐入衔接
   sx-loading（开屏期间）锁定内容；sx-revealed（结束后）统一渐入
   ============================================================ */
.sx-loading .fade-in {
  opacity: 0 !important;
  transform: translateY(28px);
  pointer-events: none;
}
.sx-loading .hero-eyebrow,
.sx-loading .hero-title,
.sx-loading .hero-title .grad-text,
.sx-loading .hero-sub,
.sx-loading .hero-cta,
.sx-loading .hero-scroll {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(8px);
  animation: none !important;
}
body.sx-revealed .hero-eyebrow { animation: heroRise 0.8s 0.05s ease both; }
body.sx-revealed .hero-title { animation: heroFade 0.8s 0.18s ease both, sxFloat 5s ease-in-out 1.2s infinite; }
body.sx-revealed .hero-title .grad-text { animation: gradFlow 6s linear infinite, heroFade 0.8s 0.18s ease both; }
body.sx-revealed .hero-sub { animation: heroRise 0.8s 0.32s ease both; }
body.sx-revealed .hero-cta { animation: heroRise 0.8s 0.46s ease both; }
body.sx-revealed .hero-scroll { animation: heroRise 0.8s 0.6s ease both; }
@keyframes heroFade {
  0% { opacity: 0; filter: blur(8px); }
  100% { opacity: 1; filter: blur(0); }
}

/* ============================================================
   文章卡片强化
   ============================================================ */
.post-card {
  position: relative;
  transition: transform 0.35s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.35s, border-color 0.35s;
}
.post-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(120deg, rgba(139,92,246,0.4), transparent 40%, transparent 60%, rgba(34,211,238,0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.post-card:hover::before { opacity: 1; }
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 50px rgba(99,102,241,0.35), 0 0 40px rgba(139,92,246,0.15);
  border-color: transparent;
}
.post-cover {
  position: relative;
}
.post-cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10,10,16,0.55));
}
.post-card:hover .post-cover { transform: scale(1.08); }

/* 分类标签徽章 */
.post-meta .tag {
  background: linear-gradient(135deg, rgba(139,92,246,0.28), rgba(99,102,241,0.28));
  color: #c4b5fd; border: 1px solid rgba(167,139,250,0.35);
  padding: 3px 12px; border-radius: 30px; font-size: 12px; font-weight: 600;
  text-decoration: none; backdrop-filter: blur(4px);
  transition: all 0.2s;
}
.post-meta .tag:hover { background: linear-gradient(135deg,#8b5cf6,#6366f1); color:#fff; box-shadow: 0 4px 16px rgba(139,92,246,0.5); }
.post-body h2 a { background: linear-gradient(90deg, transparent); filter: none; transition: color 0.3s; }
.post-body h2 a:hover { color: #a78bfa; }

/* 阅读全文按钮 */
.read-more {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(90deg,#8b5cf6,#6366f1,#8b5cf6); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  animation: gradFlow 4s linear infinite;
}

/* ============================================================
   侧栏 / 组件辉光
   ============================================================ */
.widget, .quote-card, .detail-card, .page-hero {
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015));
}

/* 滚动条美化 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0a0a16; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg,#8b5cf6,#6366f1); border-radius: 6px;
  border: 2px solid #0a0a16;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg,#a78bfa,#22d3ee); }

/* 选择文本 */
::selection { background: rgba(139,92,246,0.4); color: #fff; }

/* 页脚站点统计辉光 */
.plg-cell { position: relative; overflow: hidden; }
.plg-cell::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent, rgba(139,92,246,0.15), transparent);
  transform: translateX(-100%); animation: sheen 4s ease-in-out infinite;
}
@keyframes sheen { 0%,60%,100%{transform:translateX(-100%);} 80%{transform:translateX(100%);} }

/* 回到顶部强化 */
.back-to-top { background: linear-gradient(135deg,#8b5cf6,#6366f1); color:#fff; border:none; box-shadow: 0 8px 24px rgba(99,102,241,0.5); }
.back-to-top:hover { background: linear-gradient(135deg,#a78bfa,#22d3ee); transform: translateY(-3px) scale(1.08); box-shadow: 0 12px 32px rgba(34,211,238,0.5); }

/* 搜索框聚焦 */
.search-box:focus-within {
  border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139,92,246,0.25);
}

/* ============================================================
   内页 Hero / 归档云强化
   ============================================================ */
.page-hero { position: relative; overflow: hidden; }
.page-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 80% 20%, rgba(167,139,250,0.28), transparent 55%),
              radial-gradient(circle at 15% 90%, rgba(34,211,238,0.2), transparent 55%);
}
.page-hero h1, .page-hero h1[data-type] {
  font-family: 'InterDisplay','HarmonyOS Sans SC',sans-serif;
  font-size: clamp(32px, 6vw, 52px); letter-spacing: -1px;
}
.page-hero p { max-width: 620px; margin: 10px auto 0; }

.filter-title {
  display: inline-block;
  background: linear-gradient(90deg,#a78bfa,#22d3ee,#ec4899,#a78bfa);
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: gradFlow 6s linear infinite;
}

/* 归档云：随字号彩色渐变 */
.cloud-item { position: relative; overflow: hidden; }
.cloud-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent, rgba(167,139,250,0.18), transparent);
  transform: translateX(-100%); animation: sheen 4.5s ease-in-out infinite;
  pointer-events: none;
}
.cloud-item span { font-weight: 700; }

/* ============================================================
   文章详情强化
   ============================================================ */
.detail-card { position: relative; }
.detail-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(120deg, rgba(139,92,246,0.5), rgba(34,211,238,0.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.detail-cover { position: relative; }
.detail-cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,10,16,0.7));
}
.detail-card h1,
.detail-body h1 { letter-spacing: -0.5px; }
.detail-content p:first-of-type::first-letter {
  font-size: 3.2em; font-weight: 800; float: left; line-height: 0.9;
  margin: 0 10px 0 0; color: #a78bfa;
  background: linear-gradient(180deg,#a78bfa,#6366f1); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.detail-content h3 {
  position: relative; padding-left: 16px;
}
.detail-content h3::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 22px; border-radius: 3px;
  background: linear-gradient(#a78bfa,#22d3ee);
  box-shadow: 0 0 10px rgba(167,139,250,0.6);
}

/* ============================================================
   页脚霓虹
   ============================================================ */
.footer { border-top: none; position: relative; }
.footer::before {
  content: ''; position: absolute; top: -1px; left: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, #8b5cf6, #22d3ee, #ec4899, transparent);
}
.footer p { letter-spacing: 0.3px; }

/* ============================================================
    实时访客徽章 + AI 语录卡片
    ============================================================ */
.visitor-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: 1px; color: rgba(255,255,255,0.65);
  padding: 5px 14px; border: 1px solid rgba(139,92,246,0.35);
  border-radius: 30px; background: rgba(139,92,246,0.08);
  backdrop-filter: blur(8px); margin-left: 14px;
  animation: heroRise 0.6s 0.3s ease both;
  white-space: nowrap;
}
.visitor-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 8px #22d3ee; animation: dotPulse 1.6s infinite; }
@keyframes dotPulse { 0%,100%{opacity:1;} 50%{opacity:0.2;} }

.ai-quote {
  position: relative; margin-top: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; border-radius: 30px;
  background: rgba(139,92,246,0.06); border: 1px solid rgba(139,92,246,0.2);
  backdrop-filter: blur(8px);
  animation: heroRise 0.9s 0.5s ease both;
}
.ai-quote-text { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.5; font-style: italic; }
.ai-quote-refresh { cursor: pointer; font-size: 14px; opacity: 0.5; transition: opacity 0.3s; }
.ai-quote-refresh:hover { opacity: 1; }
