@charset "UTF-8";
/* ===========================
   Layer 3: Home 页面专用样式
   Mood 文字 / Smoker 动图 / 装饰贴纸 / Banner / iPod /
   Updates / Gallery / Neighbors / ChatBox / 笔
   仅在 milktea.html (Home) 中引入
   =========================== */


/* 模块: Mood 渐变文字（悬浮在左右栏上方） */
.mood {
  width: fit-content !important;
  left: calc(var(--layout-gap) + 20px);
  top: calc(var(--nav-offset) + 215px);
  font-size: 41px;
  font-family: "Spirit";
  background: linear-gradient(#fff, #ef91aa, #fff);
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 1px white) drop-shadow(0 0 1px white)
    drop-shadow(0 0 1px white) drop-shadow(0 0 1px white)
    drop-shadow(0 0 1px white) drop-shadow(0 0 1px white)
    drop-shadow(1px 1px 0 #0000004d);
  letter-spacing: -1px;
  z-index: 990;
  position: fixed;
  padding: 0;
  white-space: nowrap;
  pointer-events: none;
}

/* ========== Music Player (hidden) ========== */
.music-player {
  display: none;
}


/* ========== Smoker Decoration ========== */
#smoker {
  position: fixed;
  pointer-events: none;
  left: calc(var(--sidebar-width) - 90px);
  bottom: 25px;
  z-index: 960;
  filter: drop-shadow(0 0 1px white) drop-shadow(0 0 1px white)
    drop-shadow(0 0 1px white) drop-shadow(0 0 1px white)
    drop-shadow(0 0 1px white) drop-shadow(0 0 1px white)
    drop-shadow(0 0 1px white) drop-shadow(0 0 1px #0000004d);
}


/* ========== 1. 顶端展示图 ========== */
.top-banner {
  width: 100%;
  max-height:300px;
  overflow: hidden;
  border-bottom: 1px solid #ccc;
}

.top-banner .banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* 上半区 flex 布局: iPod左 + 主内容右 */
.table-section.columnflex {
  display: flex;
  flex-direction: row;
  gap: 10px;
  padding: 10px 0;
  position: relative; /* 装饰定位锚点 */
}

/* ========== 2. iPod 播放器 ========== */
.mipodmain {
  width: 175px;
  min-width: 175px;
  
  /* 1. 渐变背景：模拟光线打在机身上的微曲面效果 */
  background: linear-gradient(135deg, #fdf0f4 0%, #fbd8e5 40%, #e8bacb 100%);
  
  /* 2. 边框弱化：让边缘过渡更自然，配合阴影产生厚度感 */
  border: 1px solid rgba(211, 166, 180, 0.5);
  border-radius: 12px;
  padding: 5px;
  font-size: 11px;
  
  /* 3. 灵魂多重阴影：组合外阴影与内高光/内阴影 */
  box-shadow: 
    6px 8px 15px rgba(0, 0, 0, 0.15),           /* 较柔和的大外阴影，产生悬浮感 */
    2px 2px 5px rgba(0, 0, 0, 0.1),             /* 紧贴机身的锐利外阴影，产生厚度 */
    inset 2px 2px 4px rgba(255, 255, 255, 0.9), /* 左上角的内阴影（白色高光），模拟边缘反光 */
    inset -3px -3px 6px rgba(190, 140, 160, 0.4); /* 右下角的内阴影（暗部），增强立体弧度 */

  display: flex;
  flex-direction: column;
  align-items: center;
}

.mipodbar {
  width: 100%;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}

.mipodbar img {
  width: 100%;
  display: block;
}

.songbox {
  width: 100%;
  padding: 4px;
  text-align: center;
}

.songboxp {
  font-size: 10px;
  color: #666;
  margin: 2px 0;
}

/* 3. 专辑封面 */
.mipodalbum {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
}

.mipodalbum img {
  width: 55px;
  height: 55px;
  border-radius: 4px;
  border: 1px solid #999797;
  object-fit: cover;
}

.mipodalbum p {
  font-size: 10px;
  line-height: 1.3;
  text-align: left;
  margin: 0;
}

/* 13. 音乐播放控制 */
#musicplayer {
  width: 100%;
  padding: 4px;
}

.songtitlebox {
  text-align: center;
  font-size: 10px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.seeking {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 0;
}

.seeking .current-time,
.seeking .total-duration {
  font-size: 9px;
  color: #00060d;
  min-width: 28px;
  text-align: center;
}

.seek_slider {
  flex: 1;
  height: 4px;
  cursor: pointer;
  accent-color: #f9bddd;
}

.controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 4px 0;
}

.playpause-track {
  cursor: pointer;
  font-size: 12px;
  padding: 2px 8px;
  border: 1px solid #9f9f9f;
  border-radius: 4px;
  background: #f5f5f5;
}

.playpause-track:hover {
  background: #8c8a8b;
}

.mpausebtn {
  vertical-align: middle;
}

/* 主内容 iframe 区域 */
.table-section.mtable-section {
  flex: 1;
  min-height: 300px;
  border: 1px solid #7b7b7bc3;
  border-radius: 8px;
  overflow: hidden;
}

.mtable-section .inner {
  height: 100%;
}

.mainbox {
  width: 100%;
  height: 100%;
  min-height: 290px;
  border: none;
}

/* ========== 6. 绿色胶带装饰 (iframe 右上角) ========== */
#myellowtape {
  position: absolute;
  right: -8px;
  top: 5px;
  z-index: 10;
  pointer-events: none;
}

#myellowtape img {
  height: 30px;
  transform: rotate(30deg);
}

/* ========== 7. 鱼板装饰 (banner/iPod/iframe 交汇处) ========== */
#mexclm {
  position: absolute;
  left: 110px;
  top: -35px;
  z-index: 10;
  pointer-events: none;
}

#mexclm img {
  height: 120px;
  transform: rotate(12deg);
}

/* ========== 9. Updates / Blog Preview (动态同步 postsData) ========== */
.blog-preview {
  margin: 10px 0;
  position: relative; /* 装饰定位锚点 */
}

.blog-preview .heading {
  background: #f9bddd;
  border: 1px solid #000;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  padding: 2px 7px;
  color: #fff;
  text-shadow: 0 0 1px color-mix(in srgb, #f9bddd 70%, #000),
    1px 1px 0 color-mix(in srgb, #f9bddd 70%, #000),
    -1px -1px 0 color-mix(in srgb, #f9bddd 70%, #000);
}

.blog-preview .heading h4 {
  font-size: 14px !important;
  display: inline !important;
}

.blog-child {
  border: 1px solid #000;
  border-top: 0;
  background: #fff;
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.7;
  position: relative;
}

.blog-child:first-child {
  border-top: 1px solid #000;
}

.blog-child:last-child {
  border-radius: 0 0 10px 10px;
}

.blog-content {
  font-family: "PC98", "MS PGothic", "Unifont", monospace;
}

.blog-content b {
  color: #c44569;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.3px;
  margin-right: 4px;
}

.update-tag {
  display: inline-block;
  font-size: 9px;
  padding: 0px 5px;
  border: 1px solid #e8a0b4;
  border-radius: 8px;
  background: #fff0f5;
  color: #c44569;
  line-height: 1.5;
  margin-right: 4px;
  vertical-align: middle;
}

.update-link {
  color: #2a1a2e;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  transition: color 0.2s;
}

.update-link:hover {
  color: #c44569;
  text-decoration: underline;
}

/* ========== 9b. Gallery (动态同步 worksData 缩略图) ========== */
.gallery-section {
  margin: 10px 0;
}

.gallery-section .heading {
  background: #f9bddd;
  border: 1px solid #000;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  padding: 2px 7px;
  color: #fff;
  text-shadow: 0 0 1px color-mix(in srgb, #f9bddd 70%, #000),
    1px 1px 0 color-mix(in srgb, #f9bddd 70%, #000),
    -1px -1px 0 color-mix(in srgb, #f9bddd 70%, #000);
}

.gallery-section .heading h4 {
  font-size: 14px !important;
  display: inline !important;
}

.gallery-inner {
  border: 1px solid #000;
  border-radius: 0 0 10px 10px;
  background: #fff;
  padding: 6px;
  /* 固定高度, 无滚动条 */
  height: 192px;
  overflow: hidden;
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  height: 100%;
  align-content: flex-start;
}

.gallery-thumb {
  flex: 1 1 calc(33.33% - 4px);
  max-width: calc(33.33% - 3px);
  height: calc(50% - 2px);
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid #e0cfd6;
  display: block;
  transition: transform 0.15s, box-shadow 0.15s;
}

.gallery-thumb:hover {
  transform: scale(1.03);
  box-shadow: 0 2px 8px rgba(196, 69, 105, 0.15);
  z-index: 1;
  position: relative;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ========== 5. 悬浮人物装饰 (Updates 右侧) ========== */
#mclip {
  position: absolute;
  right: 10px;
  bottom: 0;
  z-index: 10;
  pointer-events: none;
}

#mclip img {
  height: 160px;
  transform: rotate(-5deg);
}

/* ========== 12. Neighbors (88x31 站点按钮) ========== */
.blurbs {
  margin: 10px 0;
}

.blurbs .heading {
  background: #f9bddd;
  border: 1px solid #000;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  padding: 2px 7px;
  color: #fff;
  text-shadow: 0 0 1px color-mix(in srgb, #f9bddd 70%, #000),
    1px 1px 0 color-mix(in srgb, #f9bddd 70%, #000),
    -1px -1px 0 color-mix(in srgb, #f9bddd 70%, #000);
}

.blurbs .heading h4 {
  font-size: 14px !important;
  display: inline !important;
}

.blurbs .inner {
  border: 1px solid #000;
  border-radius: 0 0 10px 10px;
  background: #fff;
  padding: 8px;
}

/* 跑马灯按钮 */
.marquee {
  overflow: hidden;
  width: 100%;
}

.marquee__content {
  display: flex;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
  animation: marquee-scroll 20s linear infinite;
}

.marquee__content li img {
  width: 88px;
  height: 31px;
  image-rendering: pixelated;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========== 10. Chat Box 留言板 ========== */
.friends {
  margin: 10px 0;
}

.friends .heading {
  background: #f9bddd;
  border: 1px solid #000;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  padding: 2px 7px;
  color: #fff;
  text-shadow: 0 0 1px color-mix(in srgb, #f9bddd 70%, #000),
    1px 1px 0 color-mix(in srgb, #f9bddd 70%, #000),
    -1px -1px 0 color-mix(in srgb, #f9bddd 70%, #000);
}

.friends .heading h4 {
  font-size: 14px !important;
  display: inline !important;
}

.friends .inner {
  border: 1px solid #000;
  border-radius: 0 0 10px 10px;
  background: #fff;
  padding: 0;
  overflow: hidden;
}

/* ---- Chatbox Mini (最新 5 条留言) ---- */
.chatbox-mini {
  max-height: 260px;
  overflow-y: auto;
}

.chatbox-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px dashed #f0dce4;
  transition: background 0.15s;
}

.chatbox-item:last-child {
  border-bottom: none;
}

.chatbox-item:hover {
  background: #fffbfd;
}

.chatbox-item-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-top: 1px;
}

.chatbox-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.chatbox-item-name {
  font-family: "MS PGothic", "Unifont", sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #2a1a2e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chatbox-item-text {
  font-size: 11px;
  color: #5a3e4b;
  line-height: 1.5;
  word-wrap: break-word;
}

.chatbox-item-date {
  font-family: "PC98", "MS PGothic", "Unifont", monospace;
  font-size: 9px;
  color: rgba(0, 0, 0, 0.25);
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

.chatbox-more {
  text-align: center;
  padding: 6px 0;
  border-top: 1px solid #f0dce4;
}

.chatbox-more-link {
  font-family: "PC98", "MS PGothic", "Unifont", monospace;
  font-size: 11px;
  color: #d46493;
  text-decoration: none;
  transition: color 0.2s;
}

.chatbox-more-link:hover {
  color: #c44569;
  text-decoration: underline;
}

/* ========== 响应式适配 ========== */

/* --- 中等屏幕 (≤1024px) --- */
@media (max-width: 1024px) {
  .mood {
    display: none;
  }

  #smoker {
    display: none;
  }
}

/* --- 手机端 (≤768px) --- */
@media (max-width: 768px) {
  /* 隐藏左栏 Profile */
  .left-col {
    display: none !important;
  }

  /* 右栏全屏 */
  .col.right {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    border: none;
    padding: 0 4px 10px;
  }

  /* 隐藏浮动装饰 */
  .mood {
    display: none;
  }

  #smoker {
    display: none;
  }

  #mclip,
  #myellowtape,
  #mexclm {
    display: none;
  }

  /* iPod + iframe 改为竖排 */
  .table-section.columnflex {
    flex-direction: column;
  }

  .mipodmain {
    width: 100%;
    min-width: unset;
  }

  /* Gallery 自适应高度 */
  .gallery-inner {
    height: auto;
    max-height: none;
  }

  .gallery-thumb {
    flex: 1 1 calc(33.33% - 4px);
    max-width: calc(33.33% - 3px);
    height: auto;
    aspect-ratio: 1 / 1;
  }
}
