﻿:root {
  --bg: #f4f6f8;
  --panel: rgba(255, 255, 255, 0.82);
  --line: rgba(90, 102, 120, 0.16);
  --text: #3b4450;
  --muted: #7f8896;
  --accent: #657d9f;
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow: 0 10px 34px rgba(30, 52, 86, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Serif SC", "Source Han Serif SC", "PingFang SC", serif;
}

body.no-scroll {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    radial-gradient(circle at 18% 20%, rgba(250, 247, 242, 0.95), transparent 40%),
    radial-gradient(circle at 82% 8%, rgba(231, 240, 252, 0.92), transparent 38%),
    radial-gradient(circle at 76% 85%, rgba(244, 236, 252, 0.65), transparent 35%),
    linear-gradient(164deg, #f7f6f3 0%, #ecf3ff 58%, #f5efff 100%);
}

.splash-screen {
  position: fixed;
  inset: 0;
  background: rgba(246, 249, 253, 0.97);
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
}

.splash-screen.visible {
  animation: splashFade 1.2s ease forwards;
}

.splash-logo {
  color: #4c5f79;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  animation: splashScale 1.2s ease forwards;
}

@keyframes splashFade {
  0% {
    opacity: 0;
  }

  12% {
    opacity: 1;
  }

  82% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes splashScale {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }

  36% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.04);
  }
}

.app-shell {
  width: min(1160px, 100% - 24px);
  margin: 14px auto 26px;
}

.home-shell {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.panel {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: var(--panel);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  padding: 14px 12px;
}

.subtle {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.52;
}

.mobile-drawer-trigger {
  position: sticky;
  top: 8px;
  z-index: 20;
  justify-self: start;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  padding: 7px 12px;
  font-family: inherit;
}

.profile-panel {
  padding-top: 8px;
  padding-bottom: 10px;
}

.profile-cover {
  height: 58px;
  border-radius: var(--radius-lg);
  background: linear-gradient(130deg, rgba(101, 125, 159, 0.24), rgba(181, 195, 216, 0.3));
}

.profile-main {
  margin-top: -22px;
  text-align: center;
}

.profile-main.compact {
  margin-top: -22px;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 6px 20px rgba(36, 55, 83, 0.16);
  margin-bottom: 5px;
}

.profile-panel h1 {
  font-size: 1.04rem;
  margin-bottom: 2px;
}

.profile-handle {
  color: #6f7d91;
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.profile-main .subtle + .subtle {
  margin-top: 4px;
}

.last-seen {
  margin-top: 4px;
}

.profile-actions {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.profile-actions.compact {
  margin-top: 8px;
}

.profile-action-btn {
  text-decoration: none;
  text-align: center;
  border-radius: 11px;
  padding: 7px 10px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  font-size: 0.86rem;
}

.soft-nav {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.soft-nav a {
  text-decoration: none;
  color: var(--text);
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 4px 9px;
  font-size: 0.78rem;
}

.soft-nav a.active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.section-head {
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: 1.12rem;
  margin-bottom: 3px;
}

.search-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
  margin-bottom: 5px;
}

.search-bar input {
  border-radius: 11px;
  border: 1px solid var(--line);
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
  font-family: inherit;
}

.search-bar button {
  border: 0;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  padding: 9px 12px;
  font-family: inherit;
}

.search-hint {
  min-height: 1.35em;
  margin-bottom: 7px;
}

.timeline {
  display: grid;
  gap: 12px;
}

.entry-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  overflow: hidden;
  cursor: pointer;
}

.entry-link {
  display: block;
  height: 100%;
  color: inherit;
}

.entry-card:focus-visible {
  outline: 2px solid rgba(101, 125, 159, 0.55);
  outline-offset: 2px;
}

.entry-shell {
  position: relative;
  height: 100%;
}

.no-image-shell {
  padding: 12px;
  height: 100%;
}

.has-image-shell {
  display: flex;
  height: 100%;
  align-items: stretch;
}

.entry-copy {
  position: relative;
  z-index: 2;
  flex: 1 1 58%;
  min-width: 0;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
}

.entry-visual {
  position: relative;
  flex: 0 0 42%;
  min-width: 200px;
  align-self: stretch;
  overflow: hidden;
  background: rgba(228, 236, 247, 0.6);
}

.entry-visual::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  width: 78px;
  height: 100%;
  z-index: 2;
  background-repeat: no-repeat;
  background-position: left top;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 78 240' preserveAspectRatio='none'%3E%3Cpath d='M0 0 H34 C58 24 14 52 48 78 C64 96 20 126 52 152 C64 168 36 210 78 240 H0 Z' fill='rgba(255,255,255,1)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.entry-cover {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.entry-cover.is-fallback {
  object-fit: cover;
  padding: 0;
}

.entry-fusion {
  display: none;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.83rem;
  color: var(--muted);
}

.entry-tags {
  margin-top: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.entry-title {
  font-size: 1rem;
}

.entry-snippet,
.entry-detail p,
.comment-text {
  font-size: 0.92rem;
  line-height: 1.62;
}

.entry-snippet {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.clamp-1 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.clamp-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.entry-snippet a,
.entry-detail a {
  color: #5879a9;
  text-underline-offset: 0.15em;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chips.compact {
  gap: 5px;
}

.chip {
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.65);
}

.side-panel {
  display: grid;
  gap: 8px;
  align-content: start;
}

.side-block {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 8px 7px;
  background: rgba(255, 255, 255, 0.56);
}

.side-block h3 {
  margin-bottom: 6px;
  font-size: 0.96rem;
}

.archive-list,
.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 5px;
}

.archive-list li,
.comment-list li {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.58);
}

.archive-list a {
  color: inherit;
  text-decoration: none;
}

.comment-author {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 2px;
}

.mobile-right-stack {
  margin-top: 2px;
  margin-bottom: 12px;
  padding: 10px;
}

.mobile-right-stack details + details {
  margin-top: 6px;
}

.mobile-right-stack summary {
  cursor: pointer;
  font-size: 0.93rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(23, 33, 47, 0.22);
}

.mobile-drawer-overlay[hidden] {
  display: none !important;
}

.mobile-drawer {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(84vw, 330px);
  margin: 0;
  border-radius: 0 18px 18px 0;
  transform: translateX(-100%);
  transition: transform 240ms ease;
}

.mobile-drawer-overlay.open .mobile-drawer {
  transform: translateX(0);
}

.drawer-close {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  padding: 5px 10px;
  font-family: inherit;
  margin-bottom: 8px;
}

.post-overlay {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: grid;
  place-items: center;
}

.post-overlay[hidden] {
  display: none !important;
}

.post-backdrop {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(4px);
  background: rgba(29, 38, 52, 0.45);
  opacity: 0;
  transition: opacity 220ms ease;
}

.post-overlay.open .post-backdrop {
  opacity: 1;
}

.post-overlay.closing .post-backdrop {
  opacity: 0;
}

.post-modal {
  position: relative;
  width: min(980px, calc(100vw - 28px));
  max-height: calc(100vh - 34px);
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(252, 253, 255, 0.97);
  box-shadow: 0 20px 60px rgba(11, 20, 33, 0.26);
  opacity: 1;
  transition: opacity 140ms ease, transform 180ms ease;
}

.post-overlay.shared-transition .post-modal {
  pointer-events: none;
}

.post-overlay.mobile-lite .post-modal {
  opacity: 0;
  transform: translate3d(0, 14px, 0) scale(0.985);
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.24, 1), opacity 180ms ease;
}

.post-overlay.mobile-lite.mobile-ready .post-modal {
  opacity: 1;
  transform: none;
}

.post-overlay.mobile-lite.closing .post-modal {
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.98);
}

.post-close {
  position: sticky;
  top: 8px;
  margin-left: calc(100% - 40px);
  z-index: 3;
  border: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
}

.post-mobile-header {
  display: none;
}

.post-close-mobile {
  border: 0;
  background: transparent;
  color: #2f3e54;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0 4px;
  font-family: inherit;
}

.post-mobile-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-mobile-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.post-mobile-name {
  color: #2f3e54;
  font-size: 0.95rem;
  font-weight: 600;
}

.post-layout {
  display: grid;
  gap: 12px;
  padding: 10px 12px 12px;
}

.post-layout.text-only {
  grid-template-columns: 1fr;
  padding: 16px 16px 18px;
}

.post-media {
  min-height: 220px;
}

.media-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 12px;
}

.media-viewer {
  position: relative;
  width: 100%;
  height: min(70vh, 620px);
  background: rgba(233, 238, 246, 0.55);
  border-radius: 12px;
  overflow: hidden;
  touch-action: pan-y;
}

.media-track {
  display: flex;
  width: 100%;
  height: 100%;
  transform: translate3d(0, 0, 0);
  transition: transform 320ms cubic-bezier(0.22, 0.8, 0.28, 1);
}

.media-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.post-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-main-image.is-fallback {
  object-fit: contain;
  padding: 24px;
}

.media-viewer.single .media-nav,
.media-viewer.single .media-counter {
  display: none !important;
}

.media-nav,
.media-counter {
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.media-viewer.ui-visible .media-nav,
.media-viewer.ui-visible .media-counter,
.media-viewer.dragging .media-nav,
.media-viewer.dragging .media-counter {
  opacity: 1;
  pointer-events: auto;
}

.media-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(18, 25, 36, 0.34);
  color: #fff;
  font-size: 1.3rem;
  z-index: 3;
}

.media-nav.prev {
  left: 10px;
}

.media-nav.next {
  right: 10px;
}

.media-counter {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(18, 25, 36, 0.52);
  color: #fff;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.76rem;
  z-index: 3;
}

.post-content {
  display: grid;
  gap: 9px;
}

.post-comments {
  margin-top: 2px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.text-post-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  padding: 14px;
}

.text-post-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.text-post-avatar {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(228, 235, 246, 0.7);
}

.text-post-head-meta h3 {
  font-size: 1.18rem;
  margin-bottom: 4px;
}

.text-post-head-meta p {
  color: var(--muted);
  font-size: 0.92rem;
}

.text-post-body {
  margin-top: 14px;
  font-size: 1.02rem;
  line-height: 1.9;
}

.text-post-body p + p {
  margin-top: 8px;
}

.text-post-like {
  margin-top: 14px;
  border: 1px solid rgba(224, 126, 157, 0.52);
  border-radius: 12px;
  background: rgba(255, 240, 247, 0.45);
  color: #d66a90;
  font-family: inherit;
  font-size: 0.98rem;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.text-post-like.active {
  background: rgba(255, 229, 240, 0.95);
}

.text-post-comment-editor {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.text-post-comment-editor h4 {
  margin-bottom: 8px;
}

.text-post-comment-editor textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.8);
  font-family: inherit;
  color: var(--text);
}

.text-post-comment-row {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
}

.text-post-comment-row input {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.8);
  font-family: inherit;
}

.text-post-comment-row button {
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  font-family: inherit;
}

.text-post-comments {
  margin-top: 12px;
}

.text-post-comments h4 {
  margin-bottom: 8px;
}

.shared-clone {
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(11, 20, 33, 0.2);
  overflow: hidden;
}

#desktop-profile-panel,
#desktop-side-panel {
  display: none;
}

@media (min-width: 768px) {
  .home-shell {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 12px;
    align-items: start;
  }

  #desktop-side-panel {
    display: grid;
  }

  .mobile-right-stack {
    display: none;
  }

  .timeline .entry-card {
    height: 198px;
  }

  .timeline .entry-card.no-image {
    height: 176px;
  }

  .entry-card.has-image .entry-visual,
  .entry-card.has-image .entry-cover {
    height: 100%;
  }

  .post-layout {
    grid-template-columns: 1.04fr 0.96fr;
    align-items: start;
  }

  .post-layout.text-only {
    grid-template-columns: 1fr;
  }

  .post-media {
    position: sticky;
    top: 8px;
  }
}

@media (min-width: 1024px) {
  .home-shell {
    grid-template-columns: 220px minmax(0, 1fr) 250px;
    gap: 10px;
    align-items: start;
  }

  #desktop-profile-panel,
  #desktop-side-panel {
    display: grid;
  }

  #desktop-profile-panel {
    position: sticky;
    top: 10px;
    align-self: start;
    max-height: calc(100vh - 20px);
    overflow: auto;
    scrollbar-width: thin;
  }

  .mobile-drawer-trigger {
    display: none;
  }
}

@media (max-width: 767px) {
  .timeline .entry-card.has-image {
    height: 338px;
  }

  .timeline .entry-card.has-image .entry-visual,
  .timeline .entry-card.has-image .entry-cover {
    height: 188px !important;
    min-height: 188px !important;
    max-height: 188px !important;
  }

  .has-image-shell {
    display: flex;
    flex-direction: column;
    min-height: initial;
    height: 100%;
  }

  .entry-visual {
    order: -1;
    min-width: 100%;
    height: 188px;
    min-height: 188px;
    max-height: 188px;
  }

  .entry-visual::before {
    display: none;
  }

  .entry-fusion {
    display: none;
  }

  .entry-copy {
    flex: 1;
    min-height: 0;
    padding: 10px 11px 11px;
  }

  .no-image-shell {
    padding: 11px;
  }

  .post-modal {
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    border: 0;
  }

  .post-close {
    display: none;
  }

  .post-mobile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 6;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    padding: 10px 12px;
    border-bottom: 1px solid rgba(87, 99, 120, 0.14);
  }

  .post-layout {
    padding: 0 0 12px;
    gap: 0;
  }

  .post-layout.text-only {
    padding: 10px;
  }

  .text-post-card {
    padding: 12px;
  }

  .text-post-comment-row {
    grid-template-columns: 1fr;
  }

  .media-viewer {
    height: min(52vh, 420px);
    border-radius: 0;
  }

  .post-content {
    padding: 12px 12px 0;
  }

  .media-nav {
    width: 32px;
    height: 32px;
  }
}

.single-column {
  width: min(840px, 100% - 24px);
}

.single-column .flow-panel {
  padding: 16px 14px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 0.88rem;
  color: var(--muted);
}

.breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.guestbook-shell {
  width: min(1160px, 100% - 24px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.guestbook-profile-panel {
  padding-top: 10px;
}

.guestbook-flow-panel {
  padding: 18px 16px;
}

.guestbook-hero {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.67);
  padding: 16px;
}

.guestbook-kicker {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: #6d7f99;
  margin-bottom: 4px;
}

.guestbook-hero h1 {
  font-size: 1.48rem;
  margin-bottom: 8px;
}

.guestbook-lead {
  color: #4c586a;
  line-height: 1.85;
  margin-bottom: 8px;
}

.guestbook-note {
  border-top: 1px dashed rgba(95, 111, 136, 0.22);
  padding-top: 8px;
}

.panel-lite {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  padding: 14px;
}

.field-block {
  display: block;
  margin-bottom: 6px;
  color: #657084;
  font-size: 0.88rem;
}

.guestbook-form textarea,
.guestbook-form input,
.admin-login-form input,
.admin-filters input,
.admin-filters select,
.admin-reply-box textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  font-family: inherit;
}

.guestbook-form textarea {
  resize: vertical;
  min-height: 136px;
}

.guestbook-form-wrap {
  margin-top: 12px;
}

.guestbook-form-wrap h2 {
  font-size: 1.06rem;
  margin-bottom: 10px;
}

.field-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
  margin-top: 10px;
}

.turnstile-slot {
  margin-top: 10px;
  padding: 8px;
  border-radius: 12px;
  border: 1px dashed rgba(101, 126, 162, 0.3);
  background: rgba(246, 249, 255, 0.52);
}

.guestbook-submit-row {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.guestbook-submit-row button,
.admin-login-form button,
.admin-filters button,
.admin-comment-actions button,
.admin-reply-box button {
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  padding: 8px 13px;
  font-family: inherit;
}

.guestbook-list-wrap {
  margin-top: 14px;
}

.guestbook-list-head {
  margin-bottom: 8px;
}

.guestbook-list-head h2 {
  font-size: 1.08rem;
  margin-bottom: 4px;
}

.guestbook-list {
  display: grid;
  gap: 11px;
}

.guestbook-empty-card {
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.54);
  padding: 16px;
}

.guestbook-empty-title {
  font-size: 1rem;
  margin-bottom: 6px;
}

.guestbook-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 11px;
  background: rgba(255, 255, 255, 0.76);
}

.guestbook-item.is-admin {
  border-color: rgba(92, 116, 148, 0.36);
  background: rgba(232, 240, 252, 0.62);
}

.guestbook-item.is-reply {
  border-color: rgba(120, 135, 157, 0.24);
}

.guestbook-item-head {
  display: block;
}

.guestbook-user {
  display: flex;
  gap: 9px;
  align-items: center;
}

.guestbook-user-meta {
  min-width: 0;
}

.guestbook-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.84);
  box-shadow: 0 4px 12px rgba(32, 53, 84, 0.18);
  background: rgba(236, 242, 252, 0.8);
}

.guestbook-author {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
  font-weight: 600;
}

.guestbook-time {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 1px;
}

.guestbook-content {
  margin-top: 8px;
  line-height: 1.78;
  overflow-wrap: anywhere;
}

.guestbook-content a {
  color: #5879a9;
}

.guestbook-meta {
  margin-top: 9px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.reply-to {
  color: var(--muted);
  font-size: 0.83rem;
}

.guestbook-children {
  margin-top: 10px;
  padding-left: 10px;
  border-left: 2px solid rgba(96, 113, 138, 0.18);
  display: grid;
  gap: 8px;
}

.replying-hint {
  margin-bottom: 8px;
  border-radius: 10px;
  border: 1px solid rgba(96, 113, 138, 0.24);
  background: rgba(235, 241, 250, 0.62);
  padding: 7px 9px;
  font-size: 0.86rem;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.72rem;
  color: #3c5d85;
  background: rgba(206, 222, 245, 0.6);
}

.link-like {
  border: 0;
  background: none;
  color: #5b789f;
  font-family: inherit;
  padding: 0;
  cursor: pointer;
}

.feedback-error {
  color: #c34f68;
}

.guestbook-empty {
  padding: 6px 2px;
}

.admin-shell {
  width: min(980px, 100% - 24px);
}

.admin-panel + .admin-panel {
  margin-top: 12px;
}

.admin-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.7);
  padding: 12px;
}

.admin-login-form {
  margin-top: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-filters {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-filters input,
.admin-filters select {
  min-width: 180px;
}

.ghost-btn {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  font-family: inherit;
}

.admin-comments-list {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.admin-comment-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.admin-comment-card.status-pending {
  border-color: rgba(199, 156, 84, 0.35);
}

.admin-comment-card.status-spam {
  border-color: rgba(179, 104, 120, 0.35);
}

.admin-comment-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-comment-content {
  margin-top: 7px;
  margin-bottom: 7px;
  line-height: 1.65;
}

.admin-comment-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-comment-actions .warn {
  background: #ad5f72;
}

.admin-reply-box {
  margin-top: 8px;
  display: grid;
  gap: 7px;
}

.status-pill {
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 1px 8px;
  font-size: 0.8rem;
}

@media (min-width: 768px) {
  .guestbook-shell {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 10px;
  }

  .guestbook-profile-panel {
    position: sticky;
    top: 10px;
    align-self: start;
    max-height: calc(100vh - 20px);
    overflow: auto;
    scrollbar-width: thin;
  }

  .field-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-login-form {
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .guestbook-shell {
    grid-template-columns: 226px minmax(0, 1fr);
    gap: 12px;
  }
}













