@charset "UTF-8";
/* ===========================
   Layer 3: Logs 动态页专用样式
   Hero / 动态卡片 / 图片网格 / 灯箱 / 时间戳复制 / 底部
   仅在 logs.html 中引入
   =========================== */


/* ========== Hero Section ========== */
.logs-hero {
  background:
    linear-gradient(135deg, rgba(249, 189, 221, 0.25) 0%, rgba(180, 223, 251, 0.2) 50%, rgba(249, 189, 221, 0.15) 100%),
    url(../assets/backgrounds/checker.gif);
  background-size: auto, 200px;
  border-bottom: 2px solid #000;
  padding: 32px 24px 24px;
}

.logs-hero-title {
  font-family: "PC98", "MS PGothic", "Unifont", monospace;
  font-size: 30px;
  font-weight: bold;
  color: #000;
  margin: 0 0 6px;
  text-shadow: 2px 2px 0 rgba(249, 189, 221, 0.5);
}

.logs-hero-sub {
  font-family: "MS PGothic", "Unifont", sans-serif;
  font-size: 13px;
  color: #5a3e4b;
  margin: 0 0 14px;
  line-height: 1.6;
}

.logs-hero-deco {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 120px;
}

.logs-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c44569;
  flex-shrink: 0;
}

.logs-line {
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg, #c44569, #f9bddd);
}


/* ========== 动态信息流容器 + 局部背景 ========== */
.logs-stream {
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;

  /* 局部平铺背景图: 仅在动态流区域 (Hero 下方) 显示 */
  background-image: url(../assets/images/bg-pattern.png);
  background-size: 180px 300px;
  background-repeat: repeat;
  background-position: top left;
}


/* ========== 单条动态卡片 ========== */
.log-card {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid #000;
  border-radius: 12px;
  padding: 18px 20px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;

  /* 入场动画 */
  animation: logSlideIn 0.4s ease both;
}

@keyframes logSlideIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.log-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 24px rgba(196, 69, 105, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.06);
}

/* 从 URL hash 定位时的高亮闪烁 */
.log-card-highlight {
  animation: logHighlight 2.5s ease;
}

@keyframes logHighlight {
  0%, 100% { box-shadow: 0 0 0 0 transparent; }
  15%, 45% { box-shadow: 0 0 0 4px rgba(249, 189, 221, 0.6), 0 4px 16px rgba(196, 69, 105, 0.12); }
  30% { box-shadow: 0 0 0 6px rgba(249, 189, 221, 0.4), 0 4px 16px rgba(196, 69, 105, 0.08); }
}

/* ---- 卡片左侧装饰竖线 ---- */
.log-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  background: linear-gradient(180deg, #f5a5c4, #7fce8c);
  border-radius: 0 2px 2px 0;
  opacity: 0;
  transition: opacity 0.25s;
}

.log-card:hover::before {
  opacity: 1;
}


/* ========== 卡片 Header: 头像 + 昵称 + 时间戳 + 心情 ========== */
.log-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  position: relative;
}

/* ---- 左侧: 头像 + 昵称 ---- */
.log-author {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.log-author:hover {
  transform: scale(1.04);
}

.log-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.log-nickname {
  font-family: "MS PGothic", "Unifont", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #1a0e1e;
  line-height: 1;
  white-space: nowrap;
}

/* ---- 右侧: 时间戳 + 心情 (推到最右) ---- */
.log-meta-right {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  position: relative;
}

.log-mood {
  font-size: 16px;
  line-height: 1;
}

.log-time {
  font-family: "PC98", "MS PGothic", "Unifont", monospace;
  font-size: 10.5px;
  color: rgba(0, 0, 0, 0.35);
  letter-spacing: 0.3px;
  cursor: url(../assets/items/select.png), pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.log-time:hover {
  background: #fff0f5;
  color: #c44569;
}

/* 已复制提示 */
.log-copied-tip {
  font-family: "PC98", "MS PGothic", "Unifont", monospace;
  font-size: 10px;
  color: #fff;
  background: #c44569;
  padding: 2px 8px;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  white-space: nowrap;
  position: absolute;
  top: -22px;
  right: 0;
}

.log-copied-tip.show {
  opacity: 1;
  transform: translateY(0);
}


/* ========== 卡片 Body: 正文 ========== */
.log-body {
  font-family: "MS PGothic", "Unifont", "Hiragino Kaku Gothic Pro", sans-serif;
  font-size: 13.5px;
  line-height: 1.75;
  color: #2a1a2e;
  word-wrap: break-word;
}

.log-body strong {
  color: #1a0e1e;
  font-weight: 700;
}

.log-body a {
  color: #d46493;
  text-decoration: none;
  border-bottom: 1px dashed #e8a0b4;
  transition: color 0.2s, border-color 0.2s;
}

.log-body a:hover {
  color: #c44569;
  border-bottom-color: #c44569;
  border-bottom-style: solid;
}

.log-inline-code {
  font-family: "Consolas", "Menlo", monospace;
  font-size: 0.88em;
  background: #f8f0f4;
  color: #c44569;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid #f0e0e8;
}


/* ========== 图片网格 ========== */
.log-images {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  border-radius: 8px;
  overflow: hidden;
}

/* 1 张: 单张大图 */
.log-images-1 {
  grid-template-columns: 1fr;
  max-width: 360px;
}

/* 2 张: 两列等宽 */
.log-images-2 {
  grid-template-columns: 1fr 1fr;
  max-width: 420px;
}

/* 3 张: 三列等宽 */
.log-images-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.log-img-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid #e0cfd6;
  cursor: url(../assets/items/select.png), pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.log-img-wrap:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(196, 69, 105, 0.12);
}

.log-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.log-img-wrap:hover img {
  transform: scale(1.08);
}

/* 1 张时不强制正方形 */
.log-images-1 .log-img-wrap {
  aspect-ratio: auto;
  max-height: 280px;
}


/* ========== 图片灯箱 (Lightbox) ========== */
.log-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.log-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.log-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.log-lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.log-lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  object-fit: contain;
  transition: transform 0.3s ease;
}

.log-lightbox.active .log-lightbox-content img {
  animation: lbZoomIn 0.3s ease;
}

@keyframes lbZoomIn {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

/* 关闭按钮 */
.log-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #c44569;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: url(../assets/items/select.png), pointer;
  transition: transform 0.15s, background 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.log-lightbox-close:hover {
  transform: scale(1.1) rotate(90deg);
  background: #a03050;
}

/* 前后切换按钮 */
.log-lightbox-prev,
.log-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: url(../assets/items/select.png), pointer;
  transition: background 0.2s, border-color 0.2s;
  backdrop-filter: blur(2px);
}

.log-lightbox-prev { left: -52px; }
.log-lightbox-next { right: -52px; }

.log-lightbox-prev:hover,
.log-lightbox-next:hover {
  background: rgba(196, 69, 105, 0.6);
  border-color: #fff;
}


/* ========== 底部结尾装饰 ========== */
.logs-end {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 28px 32px;
  /* 延续背景 */
  background-image: url(../assets/images/bg-pattern.png);
  background-size: 200px 200px;
  background-repeat: repeat;
}

.logs-end-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e0cfd6, transparent);
}

.logs-end-text {
  font-family: "MS PGothic", "Unifont", sans-serif;
  font-size: 11px;
  color: #bba3ad;
  white-space: nowrap;
}


/* ========== 空状态 ========== */
.logs-empty {
  text-align: center;
  padding: 60px 20px;
}

.logs-empty-icon {
  font-size: 36px;
  margin-bottom: 12px;
  color: #d3a6b4;
  animation: emptyBob 3s ease-in-out infinite;
}

@keyframes emptyBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.logs-empty p {
  font-size: 13px;
  color: #bba3ad;
  line-height: 1.6;
}


/* ========== 响应式 ========== */

@media (max-width: 768px) {
  /* 隐藏左栏 */
  .left-col {
    display: none;
  }

  .col.right {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    border: none;
  }

  /* 动态流: 去掉内边距，卡片撑满 */
  .logs-stream {
    padding: 12px 0;
    gap: 0;
  }

  .log-card {
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding: 14px 16px;
    margin-bottom: -1px;
  }

  .log-card:first-child {
    border-top: none;
  }

  .log-card::before {
    display: none;
  }

  .log-card:hover {
    transform: none;
    box-shadow: none;
  }

  /* 头像缩小 */
  .log-avatar {
    width: 32px;
    height: 32px;
  }

  .log-nickname {
    font-size: 13px;
  }

  .log-mood {
    font-size: 14px;
  }

  .log-time {
    font-size: 10px;
  }

  /* 图片网格 */
  .log-images-1 { max-width: 100%; }
  .log-images-2 { max-width: 100%; }

  /* 灯箱按钮位置调整 */
  .log-lightbox-prev { left: 8px; }
  .log-lightbox-next { right: 8px; }

  .log-lightbox-close {
    top: -40px;
    right: 4px;
  }

  /* Hero */
  .logs-hero {
    padding: 24px 16px 20px;
  }

  .logs-hero-title {
    font-size: 24px;
  }

  /* 底部 */
  .logs-end {
    padding: 20px 16px 28px;
  }
}
