:root {
  --bg: #189bcc;
  --ink: #000000;
  --paper: #f5f3ef;
  --font: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "PingFang SC", "Microsoft YaHei", monospace;
}

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

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

body.unlocked {
  overflow: auto;
}

/* 首屏封面 */
#front {
  position: fixed;
  inset: 0;
  cursor: pointer;
  z-index: 10;
  background: var(--bg);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

body.unlocked #front {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
}

.big-mark {
  position: fixed;
  top: -10px;
  right: 24px;
  font-size: clamp(56px, 12.5vw, 180px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.mascot {
  height: min(50vh, 420px);
  width: auto;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

/* 解锁后的主页面 */
#back {
  display: none;
  min-height: 100%;
  padding: clamp(28px, 7vw, 96px);
  flex-direction: column;
}

body.unlocked #back {
  display: flex;
}

.top {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 1.8vw, 22px);
}

.links a {
  color: var(--ink);
  text-decoration: none;
  font-size: clamp(28px, 4.4vw, 62px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  transition: transform 0.16s ease;
}

.links a:hover {
  text-decoration: underline;
  transform: translateX(4px);
}

.bottom {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.info {
  font-size: clamp(13px, 1.5vw, 20px);
  line-height: 1.35;
}

.info p {
  margin: 0;
}

.badge-88x31 {
  width: 88px;
  height: 31px;
  background: #000;
  color: var(--bg);
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid #000;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

/* 弹层抽屉 */
#drawer {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(15, 15, 16, 0.94);
  color: var(--paper);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 56px 24px 32px;
}

#drawer.open {
  display: flex;
}

#drawerClose {
  position: fixed;
  top: 20px;
  right: 26px;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(245, 243, 239, 0.35);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

#drawerClose:hover {
  background: rgba(245, 243, 239, 0.12);
}

#drawerBody {
  width: min(860px, 100%);
  max-height: 82vh;
  overflow-y: auto;
}

/* 大贴纸板 */
.sticker-board {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 16px 8px;
}

.sticker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 26px 18px 20px;
  border-radius: 18px;
  color: #f5f3ef;
  border: 3px solid #f5f3ef;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.sticker svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.sticker:hover {
  transform: rotate(0deg) scale(1.06) translateY(-4px) !important;
}

/* 随笔卡片 */
.quote-list {
  display: grid;
  gap: 14px;
}

.quote-item {
  padding: 20px 22px;
  border: 1px solid rgba(245, 243, 239, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.quote-item p {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.7;
}

.quote-item span {
  font-size: 12px;
  color: rgba(245, 243, 239, 0.5);
}

/* 照片网格 */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}

.photo-card {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  cursor: zoom-in;
}

.photo-card span {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* 歌单 */
.track-list {
  display: grid;
  gap: 10px;
}

.track-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid rgba(245, 243, 239, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.track-item button {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--bg);
  background: transparent;
  color: var(--bg);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

/* 留言 */
.gb-form {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 8px;
  margin-bottom: 16px;
}

.gb-form input {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(245, 243, 239, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: var(--paper);
  font: inherit;
  font-size: 13px;
}

.gb-form button {
  padding: 10px 18px;
  border-radius: 8px;
  border: 0;
  background: var(--bg);
  color: #000;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 600px) {
  .gb-form {
    grid-template-columns: 1fr;
  }
}
