/* ============================================================
   inner.css —— 内页（网站链接列表 / 摄影集）专用样式
   ============================================================ */

/* ------------------------------------------------------------
   网站链接列表
   ------------------------------------------------------------ */
.link-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}

.link-item a {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  height: 100%;
  padding: var(--sp-5);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.3s var(--ease),
              background 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}

.link-item a:hover {
  transform: translateY(-4px) rotate(-1deg);
  border-color: var(--accent-line);
  background: var(--surface-2);
  box-shadow: 0 0 0 1px var(--accent-line), 0 14px 36px rgba(177, 74, 255, 0.24);
}

.link-item:nth-child(even) a:hover {
  transform: translateY(-4px) rotate(1deg);
}

/* 左侧的小方块（放首字母或图标）*/
.link-item__mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

/* 方块里放图片时（比如放张猫头）：去掉渐变底，图片铺满并居中裁切 */
.link-item__mark:has(img) {
  background: none;
  overflow: hidden;
}

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

.link-item__body {
  min-width: 0;
}

.link-item__name {
  display: block;
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--text);
}

.link-item__desc {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.55;
}

/* ------------------------------------------------------------
   摄影集（瀑布流：竖图横图都能自然排布）
   ------------------------------------------------------------ */
.photo-grid {
  column-count: 3;
  column-gap: var(--sp-5);
}

.photo {
  break-inside: avoid;
  margin: 0 0 var(--sp-5);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}

.photo:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  box-shadow: 0 0 0 1px var(--accent-line), 0 16px 40px rgba(177, 74, 255, 0.24);
}

.photo img {
  display: block;
  width: 100%;
  height: auto;
}

.photo figcaption {
  padding: var(--sp-4) var(--sp-5);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

/* ------------------------------------------------------------
   响应式
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  .link-list { grid-template-columns: 1fr; }
  .photo-grid { column-count: 2; }
}

@media (max-width: 640px) {
  .photo-grid { column-count: 1; }
  .link-item__mark { width: 38px; height: 38px; font-size: 15px; }
}
