/* Aeloria 主页正文样式（page 24）—— 只作用在 .ael-home 内部，不碰主题头尾 */
.ael-home{
  --ink:#120b26; --panel:#1b1236; --peach:#ffae7a; --coral:#ff6e90; --lilac:#c9a8ff;
  --text:#e8e4f0; --muted:#8b87a8; --line:rgba(201,168,255,.14);
  --glow:0 30px 80px -40px rgba(0,0,0,.9);
  color:var(--text); line-height:1.75; position:relative; isolation:isolate;
}
.ael-home *,.ael-home *::before,.ael-home *::after{box-sizing:border-box}
.ael-home a{text-decoration:none;color:inherit}
.ael-home img{display:block;max-width:100%}
.ael-home .ael-wrap{width:100%;max-width:1180px;margin:0 auto;padding:0 24px}

/* ---------- hero ---------- */
.ael-home .hero{position:relative;overflow:hidden;padding:clamp(26px,3.6vw,52px) 0 clamp(64px,7vw,104px)}
.ael-home .hero::before,.ael-home .hero::after{content:"";position:absolute;border-radius:50%;filter:blur(90px);pointer-events:none;z-index:-1}
.ael-home .hero::before{width:520px;height:520px;right:-80px;top:-140px;
  background:radial-gradient(circle at 30% 30%,rgba(255,174,122,.38),transparent 62%)}
.ael-home .hero::after{width:460px;height:460px;left:-140px;top:110px;
  background:radial-gradient(circle at 60% 40%,rgba(201,168,255,.30),transparent 64%)}
.ael-home .hero-in{position:relative;display:grid;grid-template-columns:1.08fr .92fr;gap:clamp(26px,4vw,60px);align-items:center}

.ael-home .eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:12px;letter-spacing:.18em;
  color:var(--lilac);border:1px solid rgba(201,168,255,.30);border-radius:999px;padding:6px 14px;
  background:rgba(201,168,255,.08)}
.ael-home h1.hero-title{margin:20px 0 16px;font-size:clamp(38px,5.4vw,70px);line-height:1.05;
  letter-spacing:-.02em;font-weight:800;color:var(--text)}
.ael-home h1.hero-title span{display:block}
.ael-home h1.hero-title .grad{background:linear-gradient(100deg,var(--peach),var(--coral) 70%);
  -webkit-background-clip:text;background-clip:text;color:transparent}
.ael-home p.lede{margin:0 0 26px;font-size:clamp(15px,1.25vw,17px);color:#cfc8e4;max-width:34em}
.ael-home .hero-cta{display:flex;flex-wrap:wrap;gap:12px}
.ael-home .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:999px;
  font-weight:700;font-size:14.5px;padding:12px 24px;border:1px solid transparent;cursor:pointer;
  transition:transform .18s,background .18s,box-shadow .18s,border-color .18s;white-space:nowrap}
.ael-home .btn-primary{background:#ffae7a;background:var(--peach,#ffae7a);color:#241026;box-shadow:0 18px 44px -18px rgba(255,174,122,.85)}
.ael-home .btn-primary:hover{background:#ffc09a;transform:translateY(-2px);color:#241026}
.ael-home .btn-ghost{background:transparent;color:#e8e4f0;color:var(--text,#e8e4f0);border-color:rgba(201,168,255,.32)}
.ael-home .btn-ghost:hover{background:rgba(201,168,255,.10);color:var(--text)}
.ael-home .hero-note{margin-top:15px;font-size:12.5px;color:var(--muted)}

.ael-home .orb{position:relative;width:min(430px,100%);aspect-ratio:1/1;height:auto;margin-left:auto;display:grid;place-items:center}
/* ---------- 光球：会呼吸的光源 ---------- */
.ael-home .orb .core{position:absolute;inset:14%;border-radius:50%;
  background:radial-gradient(circle at 34% 28%,#fff 0%,rgba(255,214,180,.98) 18%,rgba(255,174,122,.95) 34%,rgba(255,110,144,.88) 56%,rgba(123,75,214,.75) 76%,rgba(18,11,38,.15) 88%);
  box-shadow:0 0 110px 26px rgba(255,110,144,.26), inset 0 0 60px rgba(255,255,255,.20);
  filter:saturate(1.05);animation:ael-breathe 7s ease-in-out infinite;will-change:transform,filter}
@keyframes ael-breathe{
  0%,100%{transform:scale(1);filter:saturate(1.05) brightness(1)}
  50%{transform:scale(1.035);filter:saturate(1.18) brightness(1.12)}
}

/* 层层光晕：不同相位，像光在扩散 */
.ael-home .orb .halo{position:absolute;inset:6%;border-radius:50%;pointer-events:none;
  background:radial-gradient(circle,rgba(255,180,150,.55) 0%,rgba(255,110,144,.22) 42%,rgba(255,110,144,0) 72%);
  filter:blur(26px);opacity:.5;animation:ael-halo 6s ease-in-out infinite;will-change:transform,opacity;
  -webkit-mask-image:radial-gradient(circle,#000 42%,rgba(0,0,0,.55) 62%,transparent 76%);
  mask-image:radial-gradient(circle,#000 42%,rgba(0,0,0,.55) 62%,transparent 76%)}
.ael-home .orb .halo.two{inset:-2%;animation-duration:8.5s;animation-delay:-2.4s;opacity:.42}
.ael-home .orb .halo.three{inset:-14%;animation-duration:11s;animation-delay:-5s;opacity:.3}
@keyframes ael-halo{
  0%,100%{transform:scale(.92);opacity:.3}
  50%{transform:scale(1.12);opacity:.62}
}

/* 缓慢旋转的光束，让"照亮"有方向感 */
.ael-home .orb .rays{position:absolute;inset:-16%;border-radius:50%;pointer-events:none;
  background:conic-gradient(from 0deg,
    rgba(255,200,170,0) 0deg,rgba(255,200,170,.16) 28deg,rgba(255,200,170,0) 62deg,
    rgba(255,200,170,0) 150deg,rgba(201,168,255,.12) 182deg,rgba(201,168,255,0) 220deg,
    rgba(255,200,170,0) 360deg);
  filter:blur(24px);opacity:.6;animation:ael-spin 48s linear infinite;
  -webkit-mask-image:radial-gradient(circle,#000 36%,transparent 66%);
  mask-image:radial-gradient(circle,#000 36%,transparent 66%)}
@keyframes ael-spin{to{transform:rotate(360deg)}}

/* 地面光池：光落在下方形成的暖区 */
.ael-home .orb .pool{position:absolute;left:50%;bottom:-6%;width:80%;height:24%;pointer-events:none;
  transform:translateX(-50%);border-radius:50%;
  background:radial-gradient(ellipse at center,rgba(255,150,120,.40),rgba(255,110,144,.14) 48%,rgba(255,110,144,0) 74%);
  filter:blur(34px);animation:ael-pool 7s ease-in-out infinite}
@keyframes ael-pool{
  0%,100%{opacity:.45;transform:translateX(-50%) scale(.94)}
  50%{opacity:.85;transform:translateX(-50%) scale(1.06)}
}

/* 尘埃：被光照亮的细小颗粒 */
.ael-home .orb .dust{position:absolute;inset:-4%;pointer-events:none}
.ael-home .orb .dust i{position:absolute;width:4px;height:4px;border-radius:50%;background:#ffd9c2;
  box-shadow:0 0 10px 2px rgba(255,190,150,.65);opacity:0;animation:ael-mote 9s ease-in-out infinite}
.ael-home .orb .dust i:nth-child(1){left:18%;top:34%;animation-delay:0s}
.ael-home .orb .dust i:nth-child(2){left:76%;top:26%;animation-delay:-1.6s;animation-duration:11s}
.ael-home .orb .dust i:nth-child(3){left:64%;top:70%;animation-delay:-3.2s;animation-duration:10s}
.ael-home .orb .dust i:nth-child(4){left:32%;top:76%;animation-delay:-4.8s;animation-duration:12s}
.ael-home .orb .dust i:nth-child(5){left:48%;top:14%;animation-delay:-6.4s;animation-duration:9.5s;width:3px;height:3px}
.ael-home .orb .dust i:nth-child(6){left:86%;top:56%;animation-delay:-7.6s;animation-duration:13s;width:3px;height:3px}
@keyframes ael-mote{
  0%{opacity:0;transform:translate3d(0,10px,0) scale(.6)}
  30%{opacity:.9}
  70%{opacity:.55}
  100%{opacity:0;transform:translate3d(6px,-26px,0) scale(1)}
}

/* 环境光：整块 hero 跟着一起明暗 */
.ael-home .hero::before{animation:ael-ambient 9s ease-in-out infinite}
.ael-home .hero::after{animation:ael-ambient 11s ease-in-out infinite reverse}
@keyframes ael-ambient{
  0%,100%{opacity:.75;transform:scale(1)}
  50%{opacity:1;transform:scale(1.06)}
}

@media (prefers-reduced-motion: reduce){
  .ael-home .orb .core,.ael-home .orb .halo,.ael-home .orb .rays,
  .ael-home .orb .pool,.ael-home .orb .dust i,.ael-home .orb .ring .spin,.ael-home .orb .ring .spin i,
  .ael-home .hero::before,.ael-home .hero::after{animation:none !important}
}
.ael-home .orb .ring{position:absolute;inset:4%;border-radius:50%;border:1px solid rgba(201,168,255,.30);
  transform:rotate(-14deg) scaleY(.42)}
.ael-home .orb .ring.two{inset:0;transform:rotate(18deg) scaleY(.36);border-color:rgba(255,174,122,.18)}

/* 轨道上的星尘：跟着轨道一起转 */
.ael-home .orb .ring .spin{position:absolute;inset:0;animation:ael-orbit 18s linear infinite}
.ael-home .orb .ring.two .spin{animation-duration:30s;animation-direction:reverse}
.ael-home .orb .ring .spin i{position:absolute;left:50%;top:0;width:7px;height:7px;margin:-3.5px 0 0 -3.5px;border-radius:50%;
  background:#fff8f0;
  box-shadow:0 0 16px 5px rgba(255,200,150,.9);animation:ael-twinkle 3.4s ease-in-out infinite}
.ael-home .orb .ring .spin i.d2{left:50%;top:100%;width:5px;height:5px;margin:-2.5px 0 0 -2.5px;
  box-shadow:0 0 12px 4px rgba(201,168,255,.85);background:#e9ddff;
  animation-duration:4.6s;animation-delay:-1.7s}
.ael-home .orb .ring .spin i.d3{left:50%;top:50%;width:4px;height:4px;margin:-2px 0 0 -2px;opacity:.8;
  box-shadow:0 0 8px 2px rgba(255,225,200,.8);animation-duration:5.8s;animation-delay:-2.9s}
@keyframes ael-orbit{to{transform:rotate(360deg)}}
@keyframes ael-twinkle{
  0%,100%{opacity:.4;transform:scale(.85)}
  45%{opacity:1;transform:scale(1.45)}
  70%{opacity:.75;transform:scale(1.05)}
}
.ael-home .glass{position:relative;z-index:2;width:min(100%,310px);border-radius:24px;padding:16px 20px;
  background:linear-gradient(180deg,rgba(32,22,62,.92),rgba(22,14,44,.88));border:1px solid rgba(201,168,255,.30);
  -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);
  box-shadow:var(--glow)}
.ael-home .glass .row{display:flex;align-items:baseline;justify-content:space-between;padding:7px 0}
.ael-home .glass .row + .row{border-top:1px solid rgba(201,168,255,.10)}
.ael-home .glass .k{font-size:12.5px;color:var(--muted)}
.ael-home .glass .v{font-size:20px;font-weight:800}
.ael-home .glass .v.peach{color:var(--peach)}

/* ---------- sections ---------- */
.ael-home section{padding:clamp(44px,5.2vw,76px) 0}
.ael-home .sec-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:30px}
.ael-home .sec-head h2{margin:0;font-size:clamp(24px,3vw,34px);letter-spacing:-.02em;color:var(--text);font-weight:800}
.ael-home .sec-head p{margin:10px 0 0;color:var(--muted);font-size:14.5px;max-width:46em}
.ael-home .more{font-size:13.5px;color:var(--peach);white-space:nowrap}
.ael-home .more:hover{color:#ffc09a}

.ael-home .creations{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.ael-home .creation{background:linear-gradient(180deg,var(--panel),rgba(27,18,54,.6));
  border:1px solid var(--line);border-radius:20px;padding:24px 22px;
  transition:transform .2s,border-color .2s}
.ael-home .creation:hover{transform:translateY(-3px);border-color:rgba(255,174,122,.34)}
.ael-home .creation svg{width:32px;height:32px;stroke:var(--peach);fill:none;stroke-width:1.6}
.ael-home .creation h3{margin:14px 0 6px;font-size:17px;color:var(--text)}
.ael-home .creation p{margin:0 0 12px;color:var(--muted);font-size:13.5px;line-height:1.8}
.ael-home .creation a{font-size:13px;color:var(--lilac)}
.ael-home .creation a:hover{color:var(--peach)}

.ael-home .worlds{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.ael-home .world{background:var(--panel);border:1px solid var(--line);border-radius:20px;overflow:hidden;
  transition:transform .2s,box-shadow .2s,border-color .2s;display:flex;flex-direction:column}
.ael-home .world:hover{transform:translateY(-4px);box-shadow:var(--glow);border-color:rgba(201,168,255,.30)}
.ael-home .cover{position:relative;aspect-ratio:16/10;overflow:hidden;
  background:linear-gradient(135deg,rgba(201,168,255,.30),rgba(255,174,122,.24))}
.ael-home .cover img{width:100%;height:100%;object-fit:cover;transition:transform .35s}
.ael-home .world:hover .cover img{transform:scale(1.04)}
.ael-home .badge{position:absolute;top:10px;right:10px;display:inline-flex;align-items:center;gap:6px;
  background:rgba(0,0,0,.62);border-radius:999px;padding:5px 10px;font-size:12px;font-weight:700;color:#fff}
.ael-home .badge .dot{width:6px;height:6px;border-radius:50%;background:#7CE7A8;box-shadow:0 0 8px #7CE7A8}
.ael-home .world-body{padding:15px 17px 17px;display:flex;flex-direction:column;gap:9px;flex:1}
.ael-home .world-title{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.ael-home .world-title h3{margin:0;font-size:16px;color:var(--text)}
.ael-home .ver{font-size:11.5px;color:var(--muted)}
.ael-home .world-meta{display:flex;gap:12px;font-size:12.5px;color:var(--muted)}
.ael-home .world-body .enter{margin-top:auto;display:flex;justify-content:space-between;align-items:center;
  font-size:12.5px;color:var(--lilac)}
.ael-home .empty-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;
  border:1px dashed rgba(201,168,255,.28);border-radius:20px;padding:26px;color:var(--muted);
  text-align:center;min-height:210px;font-size:13.5px}
.ael-home .empty-card a{color:var(--peach);font-weight:700;font-size:13.5px}

.ael-home .stats{border-top:1px solid var(--line);border-bottom:1px solid var(--line);
  display:grid;grid-template-columns:repeat(4,1fr)}
.ael-home .stat{padding:24px 16px;text-align:center}
.ael-home .stat + .stat{border-left:1px solid var(--line)}
.ael-home .stat .n{font-size:clamp(22px,2.5vw,30px);font-weight:800;letter-spacing:-.01em}
.ael-home .stat .n.peach{color:var(--peach)}
.ael-home .stat .l{font-size:12px;color:var(--muted);letter-spacing:.06em;margin-top:4px}

.ael-home .posts{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.ael-home .post{background:var(--panel);border:1px solid var(--line);border-radius:20px;overflow:hidden;
  display:flex;flex-direction:column;transition:transform .2s,border-color .2s}
.ael-home .post:hover{transform:translateY(-3px);border-color:rgba(255,174,122,.32)}
.ael-home .post .thumb{aspect-ratio:16/9;overflow:hidden;
  background:linear-gradient(135deg,rgba(255,174,122,.28),rgba(201,168,255,.26))}
.ael-home .post .thumb img{width:100%;height:100%;object-fit:cover}
.ael-home .post-body{padding:15px 17px 18px}
.ael-home .post-date{font-size:12px;color:var(--muted);letter-spacing:.04em}
.ael-home .post h3{margin:8px 0 0;font-size:15.5px;line-height:1.5;color:var(--text)}

.ael-home .alpha{position:relative;overflow:hidden;border:1px solid var(--line);border-radius:24px;
  background:linear-gradient(120deg,rgba(255,174,122,.14),rgba(201,168,255,.10) 55%,rgba(27,18,54,.4));
  padding:clamp(24px,3.4vw,40px);display:grid;grid-template-columns:1.25fr .75fr;gap:26px;align-items:center}
.ael-home .alpha h2{margin:0 0 10px;font-size:clamp(22px,2.6vw,30px);color:var(--text);font-weight:800}
.ael-home .alpha p{margin:0;color:#cfc8e4;font-size:14.5px;max-width:40em}
.ael-home .steps{display:flex;flex-wrap:wrap;gap:10px 18px;margin:18px 0 0;padding:0;list-style:none}
.ael-home .steps li{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted)}
.ael-home .steps b{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;
  background:rgba(255,174,122,.16);color:var(--peach);font-size:11.5px;font-weight:700}
.ael-home .alpha .cta{display:flex;flex-direction:column;gap:10px}
.ael-home .alpha .hint{font-size:12px;color:var(--muted);text-align:center}

/* 默认可见：动画只是增强，绝不能让内容依赖 IntersectionObserver 才出现 */
.ael-home .reveal{opacity:1;transform:none}
html.ael-anim .ael-home .reveal{opacity:0;transform:translateY(14px);transition:opacity .6s ease,transform .6s ease}
html.ael-anim .ael-home .reveal.in{opacity:1;transform:none}
.ael-home :focus-visible{outline:2px solid var(--lilac);outline-offset:3px;border-radius:8px}

@media (prefers-reduced-motion: reduce){
  .ael-home .reveal{opacity:1;transform:none;transition:none}
  .ael-home .btn,.ael-home .world,.ael-home .post,.ael-home .creation{transition:none}
}
@media (max-width:1100px){
  .ael-home .hero-in{grid-template-columns:1fr;gap:30px}
.ael-home .orb{width:min(380px,90vw);margin:0 auto}
  .ael-home .orb .core{inset:11%}
  .ael-home .orb .glass{transform:translateY(14%)}
  /* 部分安卓内核对 backdrop-filter 的处理是直接画黑，小屏直接关掉，用不透明度兜底 */
  .ael-home .glass{-webkit-backdrop-filter:none;backdrop-filter:none;
    background:linear-gradient(180deg,rgba(34,23,66,.94),rgba(23,15,46,.92))}
  /* 小屏上光球更小，模糊半径也要收，否则光被"摊薄"看不见 */
  .ael-home .orb .halo{filter:blur(20px);opacity:.62}
  .ael-home .orb .rays{filter:blur(18px)}
  .ael-home .orb .pool{filter:blur(24px)}
.ael-home .worlds,.ael-home .posts{grid-template-columns:repeat(2,1fr)}
  /* 两列时如果卡片是奇数个，最后一格横跨整行，避免右下角留一个空格 */
  .ael-home .worlds > :last-child:nth-child(odd),
  .ael-home .posts > :last-child:nth-child(odd){grid-column:1 / -1}
  .ael-home .posts > :last-child:nth-child(odd) .thumb{aspect-ratio:21/9}
  .ael-home .worlds > :last-child:nth-child(odd) .cover{aspect-ratio:21/9}
}
@media (max-width:767px){
.ael-home .creations,.ael-home .worlds,.ael-home .posts{grid-template-columns:1fr}
  .ael-home .worlds > :last-child:nth-child(odd),
  .ael-home .posts > :last-child:nth-child(odd){grid-column:auto}
  .ael-home .posts > :last-child:nth-child(odd) .thumb,
  .ael-home .worlds > :last-child:nth-child(odd) .cover{aspect-ratio:16/9}
  .ael-home .stats{grid-template-columns:1fr 1fr}
  .ael-home .stat:nth-child(3){border-left:0}
  .ael-home .stat:nth-child(n+3){border-top:1px solid var(--line)}
  .ael-home .alpha{grid-template-columns:1fr}
  .ael-home .sec-head{flex-direction:column;align-items:flex-start;gap:10px}
  .ael-home .hero-cta .btn{width:100%}
}

/* ---------- 与主题（Kadence）共存的微调：只影响首页 ---------- */
body.page-id-45 .entry-content-wrap{padding:0}
body.page-id-45 .entry.single-entry{box-shadow:none;background:transparent}
body.page-id-45 .entry-content > *{margin-top:0}
body.page-id-45 .content-area{margin-top:0;margin-bottom:0}
body.page-id-45 .entry-header{display:none}