/* ── Hollow · design system (清新治愈系) ──────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg:        #f6f8fb;
  --bg-2:      #eef2f8;
  --surface:   #ffffff;
  --surface-2: #f3f6fb;
  --surface-3: #e9eef7;
  --line:      rgba(24, 39, 75, .09);
  --line-2:    rgba(24, 39, 75, .18);
  --text:      #2a3550;
  --text-2:    #5b6a8c;
  --text-3:    #93a0bb;
  --serif:     'Instrument Serif', Georgia, 'Songti SC', 'SimSun', serif;
  --sans:      'Inter', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
  --mono:      ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px;
  --maxw: 1140px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --accent:   #6d8dff;
  --accent-2: #8fb0ff;
  --accent-soft: rgba(109, 141, 255, .12);
  --head-h: 64px;
  --shadow-sm: 0 2px 10px rgba(45, 65, 115, .05);
  --shadow-md: 0 12px 32px rgba(45, 65, 115, .09);
  --shadow-lg: 0 24px 56px rgba(45, 65, 115, .14);
}

/* 各模块主题色（清新柔和） */
body[data-mood="home"]    { --accent: #6d8dff; --accent-2: #8fb0ff; --accent-soft: rgba(109, 141, 255, .12); }
body[data-mood="novel"]   { --accent: #7bc47f; --accent-2: #a3dcae; --accent-soft: rgba(123, 196, 127, .14); }
body[data-mood="music"]   { --accent: #c98ad9; --accent-2: #dcafe9; --accent-soft: rgba(201, 138, 217, .13); }
body[data-mood="wall"]    { --accent: #5cc0b8; --accent-2: #8cd8d2; --accent-soft: rgba(92, 192, 184, .14); }
body[data-mood="anger"]   { --accent: #ff7a66; --accent-2: #ffa99c; --accent-soft: rgba(255, 122, 102, .13); }
body[data-mood="lonely"]  { --accent: #7a8cff; --accent-2: #b0bcff; --accent-soft: rgba(122, 140, 255, .13); }
body[data-mood="anxious"] { --accent: #f0b04e; --accent-2: #f6cd8c; --accent-soft: rgba(240, 176, 78, .14); }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 柔和的漂浮光斑背景 */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(760px 420px at 12% -8%, var(--accent-soft), transparent 68%),
    radial-gradient(680px 460px at 92% 6%, rgba(122, 140, 255, .08), transparent 70%),
    radial-gradient(560px 400px at 50% 110%, rgba(123, 196, 127, .06), transparent 70%);
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.18; letter-spacing: -.015em; }
p  { margin: 0; }
a  { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.narrow { max-width: 760px; }

.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
.h1 { font-family: var(--serif); font-size: clamp(24px, 6vw, 66px); line-height: 1.14; letter-spacing: -.02em; font-weight: 400; }
.h2 { font-family: var(--serif); font-size: clamp(28px, 4vw, 42px); line-height: 1.12; font-weight: 400; }
.h3 { font-size: 19px; font-weight: 600; }
.kicker {
  font-size: 12px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent);
}
.lede { font-size: clamp(16px, 1.6vw, 18.5px); color: var(--text-2); line-height: 1.66; }
.muted { color: var(--text-2); }
.dim   { color: var(--text-3); font-size: 13.5px; line-height: 1.6; }

.stack   { display: flex; flex-direction: column; }
.gap-6   { gap: 6px; }  .gap-10 { gap: 10px; } .gap-16 { gap: 16px; }
.gap-24  { gap: 24px; } .gap-40 { gap: 40px; } .gap-72 { gap: 72px; }

/* ── header ───────────────────────────────────────────────────────── */

.sh {
  position: sticky; top: 0; z-index: 90;
  height: var(--head-h);
  display: flex; align-items: center;
  padding: 0 24px;
  backdrop-filter: blur(18px) saturate(140%);
  background: rgba(246, 248, 251, .78);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.sh.scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, .9); }
.sh-inner { width: 100%; max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; gap: 20px; }

.sh-logo { display: flex; align-items: center; gap: 10px; font-size: 17px; letter-spacing: -.02em; flex: 0 0 auto; }
.sh-mark {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.sh-logo b { font-weight: 600; }

.sh-nav { display: flex; align-items: center; gap: 3px; margin-left: auto; }
.sh-nav a {
  padding: 8px 13px; border-radius: 100px;
  font-size: 14px; color: var(--text-2);
  transition: color .2s, background .2s;
}
.sh-nav a:hover { color: var(--text); background: rgba(24, 39, 75, .05); }
.sh-nav a.on { color: var(--accent); background: var(--accent-soft); font-weight: 500; }

.sh-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.sh-nav + .sh-right { margin-left: 10px; }

.icon-btn {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 100px;
  background: transparent; cursor: pointer;
  color: var(--text-2);
  transition: color .2s, border-color .2s, background .2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-2); background: rgba(24, 39, 75, .04); }
.icon-btn.sos { color: #ff7a66; border-color: rgba(255, 122, 102, .32); }
.icon-btn.sos:hover { background: rgba(255, 122, 102, .12); color: #e05845; }

.lang { position: relative; }
.lang-btn {
  height: 36px; padding: 0 12px; display: flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); border-radius: 100px;
  background: transparent; cursor: pointer; color: var(--text-2);
  font-size: 13px; transition: color .2s, border-color .2s;
}
.lang-btn:hover { color: var(--text); border-color: var(--line-2); }
.lang-btn svg { opacity: .6; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 168px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 11px; border: 0; border-radius: var(--r-sm);
  background: transparent; cursor: pointer; text-align: left; font-size: 14px; color: var(--text-2);
  transition: background .15s, color .15s;
}
.lang-menu button:hover { background: var(--surface-2); color: var(--text); }
.lang-menu button.on { color: var(--accent); background: var(--accent-soft); }
.lang-menu small { color: var(--text-3); font-size: 11px; letter-spacing: .04em; }
.lang-menu button.on small { color: var(--accent); opacity: .8; }

.burger { display: none; }

@media (max-width: 880px) {
  .sh { padding: 0 16px; }
  .burger { display: grid; }
  .sh-nav {
    position: fixed; inset: var(--head-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 14px 16px 22px;
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  }
  .sh-nav.open { opacity: 1; visibility: visible; transform: none; }
  .sh-nav a { padding: 12px 14px; font-size: 16px; border-radius: var(--r-sm); }
  .lang-menu { right: -8px; }
}

/* ── footer ───────────────────────────────────────────────────────── */

.sf {
  margin-top: 120px;
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  position: relative; z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .6));
}
.sf-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr; gap: 40px; }
.sf h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; font-weight: 600; }
.sf ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.sf a { font-size: 14px; color: var(--text-2); transition: color .2s; }
.sf a:hover { color: var(--accent); }
.sf-bottom {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--text-3);
}
@media (max-width: 760px) { .sf-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ── buttons ──────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 22px;
  border: 1px solid var(--line-2); border-radius: 100px;
  background: transparent; color: var(--text);
  font-size: 15px; cursor: pointer;
  transition: transform .18s var(--ease), background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn:hover  { background: rgba(24, 39, 75, .05); border-color: rgba(24, 39, 75, .3); }
.btn:active { transform: scale(.975); }
.btn:disabled { opacity: .38; cursor: not-allowed; transform: none; }

.btn-fill { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 500; box-shadow: 0 8px 20px var(--accent-soft); }
.btn-fill:hover { background: var(--accent-2); border-color: var(--accent-2); }

.btn-lg { height: 54px; padding: 0 30px; font-size: 16px; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* ── form ─────────────────────────────────────────────────────────── */

.field { display: flex; flex-direction: column; gap: 8px; }
.field-lbl { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }

.input, .textarea, .select {
  width: 100%; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 13px 15px; font-size: 15px; color: var(--text);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.textarea { resize: vertical; min-height: 150px; line-height: 1.7; font-family: inherit; }
.select { appearance: none; cursor: pointer; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 38px; padding: 0 16px; display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); border-radius: 100px;
  background: var(--surface); color: var(--text-2); font-size: 13.5px; cursor: pointer;
  transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--line-2); color: var(--text); }
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

.counter { display: flex; justify-content: flex-end; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* ── modal ────────────────────────────────────────────────────────── */

.modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 24px;
  background: rgba(30, 40, 65, .4); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .24s var(--ease), visibility .24s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-box {
  width: 100%; max-width: 520px; max-height: 84vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r-lg); padding: 30px;
  box-shadow: var(--shadow-lg);
  transform: translateY(14px) scale(.985); transition: transform .3s var(--ease-out);
}
.modal.open .modal-box { transform: none; }
.modal-close { position: sticky; top: 0; float: right; margin: -6px -6px 0 12px; }

/* ── toast ────────────────────────────────────────────────────────── */

.toast {
  position: fixed; left: 50%; bottom: 34px; z-index: 300;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 13px 22px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--line-2);
  font-size: 14px; box-shadow: var(--shadow-md);
  transition: opacity .28s var(--ease), transform .28s var(--ease);
  max-width: calc(100vw - 40px); text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ── reveal ───────────────────────────────────────────────────────── */

.rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.rv.in { opacity: 1; transform: none; }

/* 轻盈漂浮动画 */
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes floaty2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(3deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ── shared blocks ────────────────────────────────────────────────── */

.bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 22px;
}
.bar .spacer { flex: 1 1 auto; }

.sec-head { margin-bottom: 6px; }
.sec-head .h2 { margin-top: 14px; }
.sec-head p { margin-top: 14px; color: var(--text-2); font-size: 15px; max-width: 620px; }

.divider { height: 1px; background: var(--line); margin: 84px 0; }

.sos-note {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 15px 18px; border-radius: var(--r-md);
  border: 1px solid rgba(255, 122, 102, .3);
  background: rgba(255, 122, 102, .07);
  font-size: 13.5px; color: #c04e3c; line-height: 1.6;
}
.sos-note svg { flex: 0 0 auto; margin-top: 2px; opacity: .85; }
.sos-note a { text-decoration: underline; text-underline-offset: 3px; color: #e05845; }

.page-head { padding-top: 84px; padding-bottom: 52px; }
.page-head .h1 { margin-top: 18px; }
.page-head .lede { margin-top: 22px; max-width: 620px; }
@media (max-width: 700px) { .page-head { padding: 52px 0 36px; } }
