/* ── Hollow · home / tree / novel / wall (清新治愈系) ─────────────── */

/* ── home hero ──────────────────────────────────────────────────── */

.hero {
  padding-top: 96px;
  padding-bottom: 40px;
  text-align: center;
  position: relative;
}
.hero .h1 { margin-top: 22px; }
.hero .lede { margin: 26px auto 0; max-width: 560px; }
.hero .hero-orb {
  position: absolute; inset: 0; pointer-events: none; z-index: -1;
  overflow: hidden;
}
.hero-orb i {
  position: absolute; border-radius: 50%; filter: blur(2px);
  opacity: .55; animation: floaty 7s ease-in-out infinite;
}
.hero-orb i:nth-child(1) { width: 220px; height: 220px; background: rgba(109,141,255,.16); top: 8%; left: 8%; }
.hero-orb i:nth-child(2) { width: 160px; height: 160px; background: rgba(123,196,127,.15); top: 20%; right: 10%; animation-delay: 1.2s; }
.hero-orb i:nth-child(3) { width: 120px; height: 120px; background: rgba(240,176,78,.14); bottom: 12%; left: 22%; animation-delay: 2.1s; }
.hero-orb i:nth-child(4) { width: 90px; height: 90px; background: rgba(201,138,217,.16); bottom: 22%; right: 24%; animation-delay: .6s; }

/* ── module grid (4 cards) ──────────────────────────────────────── */

.mod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 64px;
}
@media (max-width: 980px) { .mod-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .mod-grid { grid-template-columns: 1fr; } }

.mod-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 28px 24px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  cursor: pointer;
}
.mod-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-soft);
}
.mod-card .ico {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  font-size: 26px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
  transition: transform .4s var(--ease);
}
.mod-card:hover .ico { transform: scale(1.1) rotate(-4deg); }
.mod-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.mod-card p { font-size: 14px; color: var(--text-2); line-height: 1.6; flex: 1; }
.mod-card .go {
  margin-top: 18px; font-size: 13.5px; color: var(--accent);
  display: flex; align-items: center; gap: 6px; font-weight: 500;
}
.mod-card .go svg { transition: transform .3s var(--ease); }
.mod-card:hover .go svg { transform: translateX(4px); }

/* 各模块卡片配色 */
.mod-card[data-mod="novel"] { --accent: #7bc47f; --accent-2: #a3dcae; --accent-soft: rgba(123,196,127,.14); }
.mod-card[data-mod="tree"]  { --accent: #6d8dff; --accent-2: #8fb0ff; --accent-soft: rgba(109,141,255,.12); }
.mod-card[data-mod="music"] { --accent: #c98ad9; --accent-2: #dcafe9; --accent-soft: rgba(201,138,217,.13); }
.mod-card[data-mod="wall"]  { --accent: #5cc0b8; --accent-2: #8cd8d2; --accent-soft: rgba(92,192,184,.14); }

/* ── music player (home) ────────────────────────────────────────── */

.player {
  margin: 72px auto 0;
  max-width: 640px;
  padding: 26px 28px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 20px;
}
.player .p-orb {
  width: 58px; height: 58px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  position: relative;
}
.player .p-orb::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid var(--accent-soft);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(.8); opacity: .8; }
  100% { transform: scale(1.5); opacity: 0; }
}
.player.playing .p-orb { animation: floaty2 3.5s ease-in-out infinite; }
.player .p-meta { flex: 1; min-width: 0; }
.player .p-kicker { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.player .p-name { font-size: 18px; font-weight: 600; margin-top: 3px; }
.player .p-sub { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.player .p-ctrls { display: flex; gap: 10px; flex: 0 0 auto; }
.player .p-btn {
  width: 44px; height: 44px; border-radius: 100px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; display: grid; place-items: center;
  color: var(--text-2); transition: all .2s;
}
.player .p-btn:hover { border-color: var(--accent); color: var(--accent); }
.player .p-btn.main { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 8px 18px var(--accent-soft); }
.player .p-btn.main:hover { background: var(--accent-2); border-color: var(--accent-2); }

/* ── tree selector ──────────────────────────────────────────────── */

.tree-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px;
}
@media (max-width: 760px) { .tree-grid { grid-template-columns: 1fr; } }
.tree-card {
  padding: 34px 28px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.tree-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tree-card .em { font-size: 40px; margin-bottom: 16px; display: block; }
.tree-card h3 { font-size: 22px; margin-bottom: 10px; }
.tree-card p { font-size: 14px; color: var(--text-2); line-height: 1.6; }
.tree-card[data-t="anger"]   { --accent: #ff7a66; --accent-2: #ffa99c; --accent-soft: rgba(255,122,102,.13); }
.tree-card[data-t="lonely"]  { --accent: #7a8cff; --accent-2: #b0bcff; --accent-soft: rgba(122,140,255,.13); }
.tree-card[data-t="anxious"] { --accent: #f0b04e; --accent-2: #f6cd8c; --accent-soft: rgba(240,176,78,.14); }

/* ── novel wip ──────────────────────────────────────────────────── */

.wip {
  text-align: center; padding: 60px 24px;
}
.wip .wip-ico {
  width: 88px; height: 88px; margin: 0 auto 26px; border-radius: 24px;
  display: grid; place-items: center; font-size: 44px;
  background: var(--accent-soft); color: var(--accent);
  animation: floaty 4s ease-in-out infinite;
}
.wip h2 { font-size: 30px; margin-bottom: 14px; }
.wip p { max-width: 440px; margin: 0 auto 28px; color: var(--text-2); }

/* ── message wall ───────────────────────────────────────────────── */

.wall-stage {
  position: relative;
  margin: 48px auto 0; max-width: 720px;
  min-height: 300px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(900px 400px at 50% -10%, rgba(109,141,255,.10), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  display: grid; place-items: center;
  padding: 48px 32px;
  overflow: hidden;
}
.wall-msg {
  text-align: center; max-width: 540px;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.wall-msg.out { opacity: 0; transform: translateY(14px); }
.wall-msg .quote { font-family: var(--serif); font-size: clamp(22px, 3.4vw, 30px); line-height: 1.5; color: var(--text); }
.wall-msg .who { margin-top: 20px; font-size: 13px; color: var(--text-3); letter-spacing: .04em; }
.wall-floats i {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: var(--accent-soft); animation: floaty 6s ease-in-out infinite;
}
.wall-floats i:nth-child(1) { width: 40px; height: 40px; top: 16%; left: 10%; }
.wall-floats i:nth-child(2) { width: 26px; height: 26px; bottom: 20%; left: 22%; animation-delay: 1s; }
.wall-floats i:nth-child(3) { width: 34px; height: 34px; top: 24%; right: 14%; animation-delay: 2s; }
.wall-floats i:nth-child(4) { width: 20px; height: 20px; bottom: 28%; right: 28%; animation-delay: .5s; }
.wall-floats i:nth-child(5) { width: 30px; height: 30px; top: 55%; left: 40%; animation-delay: 1.6s; }

.wall-form {
  margin: 28px auto 0; max-width: 720px;
  display: flex; gap: 12px; align-items: flex-start;
}
.wall-form textarea {
  flex: 1; min-height: 96px; resize: vertical;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 14px 16px;
  font-size: 15px; color: var(--text); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.wall-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.wall-form .send-col { display: flex; flex-direction: column; gap: 10px; }
.wall-anon { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-3); }

/* ── auth ───────────────────────────────────────────────────────── */

.auth-box {
  max-width: 440px; margin: 0 auto;
  padding: 34px 30px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.auth-box h3 { font-size: 24px; margin-bottom: 6px; }
.auth-box .lede { font-size: 14px; margin-bottom: 24px; }
.auth-box .field { margin-bottom: 16px; }
.auth-box .switch { margin-top: 18px; font-size: 13.5px; color: var(--text-2); }
.auth-box .switch a { color: var(--accent); cursor: pointer; font-weight: 500; }

.account-chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px; border-radius: 100px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 13px; color: var(--text-2); cursor: pointer;
  transition: all .2s;
}
.account-chip:hover { border-color: var(--accent); color: var(--accent); }
.account-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: #7bc47f; }

/* ── music page ─────────────────────────────────────────────────── */

.gen-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 30px; }
@media (max-width: 900px) { .gen-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .gen-grid { grid-template-columns: 1fr; } }

.gen {
  padding: 26px 20px; border-radius: var(--r-lg); cursor: pointer;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); text-align: left;
  display: flex; flex-direction: column; gap: 6px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.gen:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gen.on { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-md); }
.gen b { font-size: 17px; font-weight: 600; color: var(--text); }
.gen small { font-size: 12px; color: var(--text-3); opacity: 0; transition: opacity .2s; height: 16px; }
.gen.on small { color: var(--accent); opacity: 1; }

.gen-bars { display: flex; align-items: flex-end; gap: 3px; height: 26px; margin-bottom: 12px; }
.gen-bars i { flex: 1; background: var(--accent); border-radius: 2px; height: 30%; opacity: .35; transition: all .3s; }
.gen.on .gen-bars i { animation: bars 1s ease-in-out infinite; opacity: 1; }
.gen.on .gen-bars i:nth-child(2) { animation-delay: .1s; }
.gen.on .gen-bars i:nth-child(3) { animation-delay: .2s; }
.gen.on .gen-bars i:nth-child(4) { animation-delay: .3s; }
.gen.on .gen-bars i:nth-child(5) { animation-delay: .4s; }
.gen.on .gen-bars i:nth-child(6) { animation-delay: .5s; }
@keyframes bars { 0%,100% { height: 30%; } 50% { height: 100%; } }

.vol-row { display: flex; align-items: center; gap: 16px; margin-top: 26px; max-width: 520px; }
.vol-row span { font-size: 13px; color: var(--text-2); }
.vol-row input[type=range] { flex: 1; accent-color: var(--accent); }

.yt-wrap { margin-top: 30px; }
.yt-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); background: #000;
}
.yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; cursor: pointer; padding: 0;
  background: linear-gradient(140deg, #1a1f2e, #0c0f18);
  color: #e9ebf2; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
}
.yt-poster .yt-play {
  width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.12); transition: background .25s, transform .25s;
}
.yt-poster:hover .yt-play { background: rgba(255,255,255,.22); transform: scale(1.06); }
.yt-poster b { font-size: 16px; font-weight: 500; }
.yt-poster small { font-size: 12px; color: #9ba1b4; }
.yt-note { margin-top: 14px; font-size: 13px; color: var(--text-3); line-height: 1.6; }

.link-list { margin-top: 26px; display: flex; flex-direction: column; }
.link-item {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
  transition: background .2s;
}
.link-item:hover { background: var(--surface-2); }
.link-item b { display: block; font-size: 15px; font-weight: 600; color: var(--text); }
.link-item small { display: block; font-size: 12.5px; color: var(--text-3); margin-top: 3px; }
.link-item a { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--accent); font-weight: 500; white-space: nowrap; }

/* ── about page ─────────────────────────────────────────────────── */

.about-grid { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; gap: 28px; } }
.about-side { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 88px; }
.about-side a {
  padding: 10px 14px; border-radius: var(--r-sm);
  font-size: 14px; color: var(--text-2); transition: all .2s;
}
.about-side a:hover { color: var(--text); background: var(--surface-2); }

.prose-sec { padding: 34px 0; border-bottom: 1px solid var(--line); }
.prose-sec h2 { font-size: 24px; margin-bottom: 16px; }
.prose-sec p { color: var(--text-2); line-height: 1.75; font-size: 15px; }
.prose-sec p + p { margin-top: 14px; }

.help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 22px; }
.help-card {
  padding: 16px 18px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm);
}
.help-card .n { font-size: 14.5px; font-weight: 600; color: var(--text); }
.help-card .r { font-size: 12.5px; color: var(--text-3); margin-top: 3px; }
.help-card .v { font-size: 14px; color: var(--accent); margin-top: 12px; font-variant-numeric: tabular-nums; }
