.shelf-page {
  padding-top: 30px;
}

.shelf-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 30px;
  margin-bottom: 24px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 159, 67, 0.22), transparent 30%),
    #ffffff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
}

.shelf-hero h1 {
  margin-bottom: 8px;
  color: #222;
  font-size: 34px;
}

.shelf-hero p {
  color: #777;
  font-size: 15px;
}

.shelf-add-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6b35, #ff9f43);
  color: #fff;
  font-size: 14px;
}

/* 未登录 */
.shelf-login-card {
  display: none;
  padding: 58px 24px;
  border-radius: 24px;
  background: #fff;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
}

.shelf-login-card.show {
  display: block;
}

.shelf-login-card h2 {
  margin-bottom: 10px;
  color: #222;
  font-size: 28px;
}

.shelf-login-card p {
  margin-bottom: 22px;
  color: #777;
}

.shelf-login-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* 书架内容 */
.shelf-content {
  display: none;
}

.shelf-content.show {
  display: block;
}

.shelf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.shelf-toolbar h2 {
  color: #222;
  font-size: 24px;
}

.shelf-toolbar p {
  color: #999;
  font-size: 14px;
}

.shelf-toolbar button {
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff4ed;
  color: #ff6b35;
  font-size: 14px;
}

.shelf-toolbar button:hover {
  background: #ff6b35;
  color: #fff;
}

.shelf-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.shelf-item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 18px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: 0.2s;
}

.shelf-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

.shelf-cover {
  width: 110px;
  height: 150px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff6b35, #ffb35c);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  letter-spacing: 5px;
  font-size: 20px;
  font-weight: 800;
}

.shelf-info {
  min-width: 0;
}

.shelf-info h3 {
  margin-bottom: 6px;
  color: #222;
  font-size: 22px;
}

.shelf-info h3:hover {
  color: #ff6b35;
}

.shelf-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  color: #888;
  font-size: 13px;
}

.shelf-meta span {
  padding: 4px 10px;
  border-radius: 999px;
  background: #f6f6f6;
}

.shelf-desc {
  max-width: 720px;
  height: 44px;
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  overflow: hidden;
  margin-bottom: 12px;
}

.shelf-progress {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff4ed;
  color: #ff6b35;
  font-size: 13px;
}

.shelf-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-width: 112px;
}

.shelf-actions a,
.shelf-actions button {
  height: 36px;
  border-radius: 999px;
  font-size: 13px;
}

.continue-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ff6b35;
  color: #fff;
}

.detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff4ed;
  color: #ff6b35;
}

.remove-btn {
  background: #f5f5f5;
  color: #777;
}

.remove-btn:hover {
  background: #eeeeee;
}

/* 空书架 */
.empty-shelf {
  display: none;
  padding: 70px 24px;
  border-radius: 24px;
  background: #fff;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
}

.empty-shelf.show {
  display: block;
}

.empty-icon {
  margin-bottom: 12px;
  font-size: 52px;
}

.empty-shelf h2 {
  margin-bottom: 10px;
  color: #222;
  font-size: 27px;
}

.empty-shelf p {
  margin-bottom: 22px;
  color: #777;
}

/* 页脚备案 */
.site-footer a {
  color: #888;
}

.site-footer a:hover {
  color: #ff6b35;
}

.footer-note {
  margin-top: 4px;
}

/* 响应式 */
@media (max-width: 860px) {
  .shelf-item {
    grid-template-columns: 92px 1fr;
  }

  .shelf-cover {
    width: 92px;
    height: 126px;
    font-size: 18px;
  }

  .shelf-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-start;
  }

  .shelf-actions a,
  .shelf-actions button {
    padding: 0 14px;
  }
}

@media (max-width: 620px) {
  .shelf-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .shelf-hero h1 {
    font-size: 28px;
  }

  .shelf-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .shelf-item {
    grid-template-columns: 1fr;
  }

  .shelf-cover {
    width: 120px;
    height: 160px;
  }

  .shelf-login-actions {
    flex-direction: column;
  }
}