/* 留言板：灰底上的白面板（面板样式共用 main.css）——标题面板、左边留言列表、右边发表留言表单（桌机 sticky） */
/* 标题面板：与资讯／排行榜／分集剧情同一套蓝色横幅（--banner-bg），白字、英文小标、右下大字浮水印 */
.lb-gbook-hd {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: var(--gap-panel);
  padding: 22px 24px;
  overflow: hidden;
  background: var(--banner-bg);
  box-shadow: none;
  color: #fff;
  isolation: isolate;
}

.lb-gbook-hd::before {
  content: "GUESTBOOK";
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.lb-gbook-hd::after {
  content: "MESSAGE";
  position: absolute;
  right: 18px;
  bottom: -16px;
  z-index: -1;
  color: rgba(255, 255, 255, 0.2);
  font-size: 96px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  pointer-events: none;
}

.lb-gbook-title {
  margin: 0;
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
}

.lb-gbook-count {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
}

.lb-gbook-count em {
  margin: 0 2px;
  color: #fff;
  font-style: normal;
  font-weight: 700;
}

.lb-gbook-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  gap: var(--gap-panel);
}

/* ===== 留言列表：一块面板里用细线分隔 ===== */
.lb-gbook-list {
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.lb-gbook-item {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--bg-elev);
}

.lb-gbook-item:first-child {
  padding-top: 0;
  border-top: none;
}

.lb-gbook-avatar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent-tab);
  font-size: 17px;
  font-weight: 700;
}

.lb-gbook-item-body {
  flex: 1;
  min-width: 0;
}

.lb-gbook-item-hd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-bottom: 6px;
}

.lb-gbook-uname {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.lb-gbook-time {
  color: var(--text-muted);
  font-size: 12px;
}

.lb-gbook-content {
  margin: 0;
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.lb-gbook-reply {
  margin-top: 12px;
  padding: 10px 14px;
  border-left: 3px solid var(--accent);
  border-radius: 0 4px 4px 0;
  background: var(--bg-elev);
  color: var(--text-light);
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.lb-gbook-reply-label {
  margin-right: 8px;
  color: var(--accent-tab);
  font-weight: 700;
}

.lb-gbook-empty {
  margin: 0;
  padding: 50px 20px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}

/* ===== 发表留言 ===== */
.lb-gbook-side {
  position: sticky;
  top: calc(var(--topbar-h) + 20px);
}

.lb-gbook-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lb-gbook-form-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

.lb-gbook-form-title .mac-icon {
  color: var(--accent-tab);
  font-size: 20px;
}

.lb-gbook-form-tip {
  margin: -4px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.lb-gbook-textarea {
  width: 100%;
  min-height: 150px;
  padding: 12px 14px;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  transition: border-color 0.2s;
}

.lb-gbook-textarea:focus,
.lb-gbook-verify-input:focus {
  border-color: var(--accent-tab);
  outline: none;
}

.lb-gbook-hint {
  margin: -4px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  text-align: right;
}

.lb-gbook-hint em {
  color: var(--accent-tab);
  font-style: normal;
  font-weight: 700;
}

.lb-gbook-verify {
  display: flex;
  gap: 10px;
}

.lb-gbook-verify-input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.2s;
}

.lb-gbook-captcha {
  flex-shrink: 0;
  width: 110px;
  height: 40px;
  border-radius: var(--radius);
  background: #fff;
  object-fit: cover;
  cursor: pointer;
}

.lb-gbook-submit {
  height: 44px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.lb-gbook-submit:hover {
  background: var(--accent-hover);
}

/* <1200px 表单移到列表上方，方便先留言 */
@media (max-width: 1199px) {
  .lb-gbook-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .lb-gbook-side {
    position: static;
    order: -1;
  }
}

@media (max-width: 767px) {
  .lb-gbook-hd {
    padding: 16px;
  }

  .lb-gbook-hd::after {
    right: 10px;
    bottom: -10px;
    font-size: 56px;
  }

  .lb-gbook-title {
    font-size: 24px;
  }

  .lb-gbook-item {
    gap: 12px;
    padding: 14px 0;
  }

  .lb-gbook-avatar {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
}
