/* ==========================================================================
   Sakibot 首页版式（hero / 关于 / 功能一览 / 联系）
   配色不在这里 —— 那套「出雲咲姫 / Photon Maiden」调色板在 sakibot.css 的
   body.saki 里，整个 Sakibot 站共用。这里只管首页的版式。
   ========================================================================== */

/* ---------- Hero：咲姫卡面墙（会缓慢流动） ----------
   原来是单张 Photon Maiden 插画，2026-10-14 换成**咲姫自己的卡面墙**：
   60 张卡铺成 6 列，每列往不同方向/速度漂，标题压在上面。
   素材由 `_dev/build_saki_wall.py` 生成（WebP，约 1.8 MB）。 */
.sk-hero {
  position: relative;
  min-height: 68vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 84px 22px 76px;
  overflow: hidden;
}

/* 背景层（卡面墙 + 压暗遮罩）单独包一层 —— 这样才能对**两层一起**做底部淡出。
   ⚠️ 别把遮罩拆到 .sk-hero 上：hero 底部会变成不透明的一块，
      而下面 body 的星云是「底色 + 光晕」，两者对不上就是一条硬缝。 */
.sk-hero-bg {
  position: absolute; inset: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 66%, rgba(0, 0, 0, .5) 88%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 66%, rgba(0, 0, 0, .5) 88%, transparent 100%);
}
/* 压暗：中间最暗（标题要读得清），四周亮一些（卡面看得见） */
.sk-hero-bg::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background:
    radial-gradient(62% 66% at 50% 46%,
      rgba(5, 20, 26, .90) 0%, rgba(5, 20, 26, .74) 44%, rgba(5, 20, 26, .28) 100%),
    linear-gradient(180deg,
      rgba(5, 20, 26, .78) 0%, rgba(5, 20, 26, .26) 26%,
      rgba(5, 20, 26, .38) 74%, rgba(5, 20, 26, .70) 100%);
}

.sk-wall {
  position: absolute; inset: -6% -2%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  z-index: 1;
}
.sk-wall-col {
  display: flex; flex-direction: column;
  /* 速度：一列内容约 6200px（20 张），走一半 = 3100px。
     120s ≈ 26px/s —— 一张卡约 12 秒滑过，是「缓慢漂」不是「滚字幕」。 */
  animation: sk-flow 120s linear infinite;
  will-change: transform;
}
/* 奇偶反向 + 不同速度 —— 整体同速平移看起来是「一张壁纸在滑」，
   差速 + 反向才有「流动」的感觉 */
.sk-wall-col:nth-child(even) { animation-direction: reverse; }
.sk-wall-col:nth-child(3n)    { animation-duration: 152s; }
.sk-wall-col:nth-child(3n + 1) { animation-duration: 176s; }
.sk-wall-col:nth-child(5n)    { animation-duration: 98s; }

.sk-wall img {
  width: 100%; height: auto; display: block;
  border-radius: 0;
  /* ⚠️ 用 margin 不用 gap：列内容是「同一批卡 ×2」，动画走 -50% 才能无缝。
     换成 gap 会让总高 ≠ 两份之和，每循环一次就跳一下。 */
  margin-bottom: 0;
  opacity: .84;
}

@keyframes sk-flow {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

@media (max-width: 900px) { .sk-wall { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .sk-wall { grid-template-columns: repeat(3, 1fr); } }
/* 关掉动画偏好：停在原地，别让前庭敏感的人难受 */
@media (prefers-reduced-motion: reduce) {
  .sk-wall-col { animation: none; }
}

.sk-hero-inner { position: relative; max-width: 780px; }

.sk-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 16px; border-radius: 999px; font-size: 13px;
  color: var(--brand-soft);
  background: rgba(5, 20, 26, .55);
  border: 1px solid var(--border-2);
  backdrop-filter: blur(6px);
  margin-bottom: 22px;
}
.sk-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 12px rgba(22, 255, 235, .9);
}

.sk-hero h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 700; letter-spacing: 2px;
  margin: 0 0 6px;
  background: linear-gradient(120deg, #ffffff 10%, var(--brand-soft) 48%, var(--brand) 90%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 30px rgba(22, 255, 235, .35));
}
.sk-hero .sk-sub {
  font-size: 14px; letter-spacing: 5px; text-transform: uppercase;
  color: var(--text-mute); margin: 0 0 20px;
}
.sk-hero .sk-tag {
  font-size: 17px; color: var(--text-dim);
  max-width: 620px; margin: 0 auto 32px;
}
.sk-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 通用分区 ---------- */
.sk-section { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.sk-head { display: flex; align-items: baseline; gap: 14px; margin: 56px 0 20px; }
.sk-head h2 { margin: 0; }
.sk-head .line { flex: 1; height: 1px; background: var(--border); }

/* ---------- 关于 ---------- */
.sk-about {
  display: grid; grid-template-columns: 1fr 1.15fr;
  gap: 26px; align-items: center;
}
@media (max-width: 780px) { .sk-about { grid-template-columns: 1fr; } }

.sk-about-img {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow);
}
.sk-about-img img { width: 100%; height: auto; display: block; }

.sk-facts { list-style: none; padding: 0; margin: 18px 0 0; }
.sk-facts li {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 14px;
}
.sk-facts li:last-child { border-bottom: none; }
.sk-facts .k { color: var(--text-mute); }
.sk-facts .v { color: var(--text); text-align: right; }
.sk-facts .v em { color: var(--brand); font-style: normal; font-variant-numeric: tabular-nums; }

/* ---------- 功能一览 ---------- */
.sk-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.sk-card {
  padding: 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.sk-card:hover { transform: translateY(-3px); border-color: var(--border-2); background: var(--surface-2); }
.sk-card .ico { font-size: 24px; margin-bottom: 10px; }
.sk-card h3 { margin: 0 0 6px; font-size: 16px; color: var(--text); }
.sk-card p { margin: 0; font-size: 13.5px; color: var(--text-mute); line-height: 1.65; }
.sk-card .hint { display: block; margin-top: 8px; font-size: 12.5px; color: var(--brand-soft); }

/* ---------- 联系 ---------- */
.sk-contact { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.sk-contact a, .sk-contact .row {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-dim); font-size: 14.5px;
}
.sk-contact a:hover { text-decoration: none; border-color: var(--border-2); color: var(--text); }
.sk-contact .ico { font-size: 18px; }
.sk-contact .hint { margin-left: auto; color: var(--text-mute); font-size: 13px; }


/* 友链分组小标题 */
.sk-sub-head {
  font-size: 14px; font-weight: 600; letter-spacing: .5px;
  color: var(--brand-soft);
  margin: 26px 0 12px;
}
#links .grid { margin-bottom: 4px; }
