/* Only Elapse's monthly archive index. Existing page title, navigation and width remain shared. */
body.page .gel-index{position:relative;color:#141414;font-size:14px;line-height:28px;margin:0;padding:0}
body.page .gel-index *{box-sizing:border-box}
body.page .gel-index .gel-year{display:grid;grid-template-columns:72px minmax(0,1fr);column-gap:24px;margin:0;padding:0}
body.page .gel-index .gel-year+.gel-year{border-top:1px solid #141414;margin-top:14px;padding-top:14px}
body.page .gel-index .gel-year-label{font:inherit;font-weight:400;letter-spacing:0;color:#141414;margin:0!important;padding:0;height:29px;line-height:29px}
body.page .gel-index .gel-months{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 16px;list-style:none;margin:0!important;padding:0!important}
body.page .gel-index .gel-months li{list-style:none;margin:0!important;padding:0!important;min-width:0;height:29px;line-height:29px}
body.page .gel-index a.gel-month{position:relative;isolation:isolate;display:inline-flex;align-items:center;height:29px;min-width:52px;padding:0 6px;margin:0 0 0 -6px;font:inherit;font-size:14px;line-height:28px;font-weight:400;letter-spacing:0;white-space:nowrap;color:#141414!important;text-decoration:none!important;border:0;background:none;box-shadow:none!important;transition:color .16s}
body.page .gel-index .gel-month:before{content:"";position:absolute;inset:2px 0;z-index:-1;background:#141414;transform:scaleX(0);transform-origin:left center;transition:transform .16s cubic-bezier(.2,.7,.2,1)}
body.page .gel-index .gel-month.is-entered{color:#d7b859!important}
body.page .gel-index .gel-month.is-entered:before{transform:scaleX(1)}
body.page .gel-index .gel-month:focus-visible{outline:1px solid #141414;outline-offset:2px}
body.page .gel-index .gel-cursor{position:absolute;top:0;left:0;height:2px;width:24px;background:#d7b859;pointer-events:none;opacity:0;transform-origin:left;transition:transform .2s cubic-bezier(.2,.7,.2,1),width .2s,opacity .12s}
body.page .gel-index .gel-cursor.is-visible{opacity:1}
@media(max-width:768px){
 body.page .gel-index .gel-year{grid-template-columns:52px minmax(0,1fr);column-gap:20px}
 body.page .gel-index .gel-months{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px}
}
@media(prefers-reduced-motion:reduce){body.page .gel-index .gel-month,body.page .gel-index .gel-month:before,body.page .gel-index .gel-cursor{transition:none}}
/* 10-26 Georges「这里的月份 右对齐试试？让月这个字排列对齐」:月份字在链接里靠右,内容区 52−6−14=32px 正好放下最宽的「10 月」(31px),
   各月的「月」字上下对齐、「10 月」位置几乎不动;链接本身(52px、按下的黑底)和位置照旧,下划线光标跟着字走 */
body.page .gel-index a.gel-month{justify-content:flex-end;padding-right:14px}

/* ===== 出场动效「金线流过」(10-29 晚 Georges「整体版面不变，但我希望出来的时候是带着动效把列表铺出来」「要表达一种流动感，这个列表以后会有很长」;
   预览了三个方案后「方案三吧」) =====
   一年一级台阶:分隔线从左往右流过,线头一颗主题黄笔尖(同标题动画),走到头收掉;这一年的月份一格一格漂到位,下一级接着流。
   .gel-flow 类和每行的序号(行号 --gel-j、前面有几排月份:电脑 4 列 --gel-ld / 手机 2 列 --gel-lm)由 georges-elapse.php 写进去。
   版面不变:分隔线从 border 换成同位置、同粗细的背景线(border 留着、改透明占位),好让线从左往右「流」过去;动画都只用 backwards 填充,播完回到原样式。
   开场画面盖着时先停住,开场收走时才开始(见下方 .gsplash 规则)。
   很长时:首屏按行排开,最晚 1.8 秒开始;首屏以外的行先不播(.gel-wait),滚到眼前再流进来(.gel-go,elapse.js)。减少动态:不动。 */
body.page .gel-index.gel-flow .gel-year{position:relative}
body.page .gel-index.gel-flow .gel-year+.gel-year{border-top-color:transparent;background:linear-gradient(#141414,#141414) 0 0/100% 1px no-repeat;background-origin:border-box}
/* 每格在本行的第几列(--c)、第几排(--r):电脑 4 列,手机 2 列 */
body.page .gel-index.gel-flow .gel-months li{--c:0;--r:0}
body.page .gel-index.gel-flow .gel-months li:nth-child(4n+2){--c:1}
body.page .gel-index.gel-flow .gel-months li:nth-child(4n+3){--c:2}
body.page .gel-index.gel-flow .gel-months li:nth-child(4n+4){--c:3}
body.page .gel-index.gel-flow .gel-months li:nth-child(n+5){--r:1}
body.page .gel-index.gel-flow .gel-months li:nth-child(n+9){--r:2}
@media(max-width:768px){
 body.page .gel-index.gel-flow .gel-months li:nth-child(n){--c:0;--r:0}
 body.page .gel-index.gel-flow .gel-months li:nth-child(2n){--c:1}
 body.page .gel-index.gel-flow .gel-months li:nth-child(n+3){--r:1}
 body.page .gel-index.gel-flow .gel-months li:nth-child(n+5){--r:2}
 body.page .gel-index.gel-flow .gel-months li:nth-child(n+7){--r:3}
 body.page .gel-index.gel-flow .gel-months li:nth-child(n+9){--r:4}
 body.page .gel-index.gel-flow .gel-months li:nth-child(n+11){--r:5}
}
@keyframes gel-line{from{background-size:0 1px}to{background-size:100% 1px}}
@keyframes gel-drift{from{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:none}}
/* 笔尖:等线开画时弹出,和线同速走到右端(.85 秒 = 整段的 88%),再缩没 */
@keyframes gel-pen{0%{left:0;transform:scale(0)}3%{transform:scale(1)}88%{left:100%;transform:scale(1)}100%{left:100%;transform:scale(0)}}
@media(prefers-reduced-motion:no-preference){
 /* 行的起点 = 行号 × 130ms + 前面的排数 × 55ms(手机 2 列排数多,每排 45ms,见文件末尾) */
 body.page .gel-index.gel-flow .gel-year{--t:min(calc(120ms + var(--gel-j) * 130ms + var(--gel-ld) * 55ms), 1800ms)}
 body.page .gel-index.gel-flow .gel-year+.gel-year{animation:gel-line .85s cubic-bezier(.45,.05,.25,1) backwards;animation-delay:calc(var(--t) - 90ms)}
 body.page .gel-index.gel-flow .gel-year-label{animation:gel-drift .6s cubic-bezier(.2,.7,.2,1) backwards;animation-delay:var(--t)}
 body.page .gel-index.gel-flow .gel-months li{animation:gel-drift .65s cubic-bezier(.2,.7,.2,1) backwards;animation-delay:calc(var(--t) + 90ms + var(--c) * 120ms + var(--r) * 60ms)}
 body.page .gel-index.gel-flow .gel-year+.gel-year:after{content:"";position:absolute;top:-3px;left:0;width:5px;height:5px;margin-left:-2.5px;border-radius:50%;background:#d7b859;transform:scale(0);pointer-events:none;
   animation:gel-pen .966s backwards;animation-timing-function:cubic-bezier(.45,.05,.25,1);animation-delay:calc(var(--t) - 90ms)}
 /* 首屏以外的行:先藏着不播,滚到眼前 elapse.js 换成 .gel-go,从 --gel-go(同一批进来的依次差 110ms)重新开始。
    选择器里重复写的类只为压过上面的规则(优先级),不是笔误 */
 body.page .gel-index.gel-flow .gel-year.gel-wait.gel-wait,body.page .gel-index.gel-flow .gel-year.gel-wait.gel-wait:after,
 body.page .gel-index.gel-flow .gel-year.gel-wait .gel-year-label.gel-year-label,
 body.page .gel-index.gel-flow .gel-year.gel-wait .gel-months.gel-months li{animation:none}
 body.page .gel-index.gel-flow .gel-year.gel-wait.gel-wait{background-size:0 1px}
 body.page .gel-index.gel-flow .gel-year.gel-wait .gel-year-label.gel-year-label,body.page .gel-index.gel-flow .gel-year.gel-wait .gel-months.gel-months li{opacity:0}
 body.page .gel-index.gel-flow .gel-year.gel-go.gel-go{--t:var(--gel-go,0ms)}
 /* 整页打开时有开场(georges-splash 给 <html> 加 .gsplash,要盖 2 秒多),动效原先在开场底下就播完了(10-29 晚 Georges「都没有动效」)。
    开场开始收走(.gsplash-out,黄色从左往右退)之前全部停在第 0 帧,跟着收走的那一下接着流出来;站内切换 / 后退没有开场,照常立刻播 */
 html.gsplash:not(.gsplash-out) body.page .gel-index.gel-flow .gel-year,html.gsplash:not(.gsplash-out) body.page .gel-index.gel-flow .gel-year:after,
 html.gsplash:not(.gsplash-out) body.page .gel-index.gel-flow .gel-year-label,html.gsplash:not(.gsplash-out) body.page .gel-index.gel-flow .gel-months li{animation-play-state:paused!important}
}
@media(max-width:768px) and (prefers-reduced-motion:no-preference){
 body.page .gel-index.gel-flow .gel-year{--t:min(calc(120ms + var(--gel-j) * 120ms + var(--gel-lm) * 45ms), 1800ms)}
}
