.gbook-main {
  padding: 16px 0 48px;
  background: var(--bg-light);
  min-height: 60vh;
}

.gbook-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

/* ===== 左侧列表 ===== */
.gbook-list-wrap {
  flex: 1;
  min-width: 0;
}

.gbook-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-white);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.gbook-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

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

.gbook-meta em {
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
}

.gbook-list {
  background: var(--bg-white);
  box-shadow: var(--shadow);
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
  margin: 0 0 12px;
  padding: 0;
}

.gbook-empty {
  padding: 48px 16px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

.gbook-item {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

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

.gbook-item-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.gbook-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
}

.gbook-item-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gbook-uname {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

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

.gbook-content {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  padding-left: 46px;
}

.gbook-reply {
  margin-top: 8px;
  margin-left: 46px;
  background: var(--bg-light);
  border-left: 3px solid var(--accent);
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-light);
  border-radius: 0 4px 4px 0;
}

.gbook-reply-label {
  font-weight: 600;
  color: var(--accent);
}

.gbook-pagination { margin-top: 4px; }

/* ===== 右侧表单 ===== */
.gbook-form-wrap {
  width: 300px;
  flex-shrink: 0;
  position: sticky;
  top: 60px;
}

.gbook-form-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}

.gbook-textarea {
  display: block;
  width: 100%;
  min-height: 120px;
  border: 1px solid var(--border-mid);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text);
  resize: vertical;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
  background: var(--bg-light);
  transition: border-color 0.15s, background 0.15s;
  margin-bottom: 8px;
}

.gbook-textarea:focus {
  border-color: var(--accent);
  background: #fff;
}

.gbook-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-align: center;
}

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

.gbook-form-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gbook-verify-input {
  width: 80px;
  height: 34px;
  border: 1px solid var(--border-mid);
  border-radius: 4px;
  padding: 0 8px;
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.gbook-verify-input:focus { border-color: var(--accent); }

.gbook-captcha {
  height: 34px;
  width: auto;
  border-radius: 4px;
  border: 1px solid var(--border-mid);
  cursor: pointer;
  display: block;
  flex-shrink: 0;
}

.gbook-submit {
  flex: 1;
  height: 34px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.gbook-submit:hover { background: #e55f00; }

/* ===== RWD ===== */
@media (max-width: 1024px) {
  .gbook-form-wrap { width: 260px; }
}

@media (max-width: 767px) {
  .gbook-main { padding: 0 0 68px; }

  .gbook-container {
    flex-direction: column;
    padding: 0;
    gap: 0;
  }

  .gbook-list-wrap { width: 100%; }

  .gbook-list-header {
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid var(--border);
  }

  .gbook-list {
    border-radius: 0;
    box-shadow: none;
    border-bottom: 8px solid var(--bg-light);
    margin-bottom: 0;
  }

  .gbook-form-wrap {
    width: 100%;
    position: static;
    border-top: 8px solid var(--bg-light);
  }

  .gbook-form-card {
    border-radius: 0;
    box-shadow: none;
  }

  .gbook-content,
  .gbook-reply { padding-left: 0; margin-left: 0; }
}
