.search-container {
  width: 100%;
  max-width: 1100px;
  margin: 20px auto;
  padding: 0 15px;
  box-sizing: border-box;
}

#searchForm {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
}

#keyword {
  flex: 1;
  min-width: 0;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
}

.search-btn {
  flex-shrink: 0;
  padding: 10px 20px;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  white-space: nowrap;
  background-color: #4caf50;
}

.search-btn:hover {
  background-color: #45a049;
}

.sheets-container,
#sheetList.sheets-container {
  width: 100%;
  max-width: 1100px;
  margin: 20px auto;
  padding: 0 15px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media screen and (max-width: 992px) {
  .sheets-container,
  #sheetList.sheets-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 768px) {
  .sheets-container,
  #sheetList.sheets-container {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.sheet-cell {
  display: block;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.sheet-item {
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  transition: all 0.3s ease;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.sheet-cell:hover .sheet-item {
  border-color: #f6d727;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sheet-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.sheet-name {
  font-size: 15px;
  font-weight: 600;
  color: #444;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1 1 auto;
}

.sheet-tags {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.sheet-tag {
  display: inline-block;
  padding: 1px 6px;
  font-size: 11px;
  line-height: 1.35;
  border-radius: 4px;
  font-weight: 500;
}

.sheet-tag--artist {
  color: #546e7a;
  background: #eceff1;
  font-weight: 400;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheet-tag--empty {
  color: #c62828;
  background: #ffebee;
}

.content {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 15px;
  box-sizing: border-box;
}

.search {
  width: 100%;
  height: 40px;
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.3s;
}

.search:hover,
.search:focus {
  border-color: #f6d727;
  outline: none;
  box-shadow: 0 0 0 1px rgba(5, 145, 255, 0.1);
}

.list {
  margin-top: 20px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
}

.list-item {
  padding: 12px 24px;
  border-bottom: 1px solid #d9d9d9;
}

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

.list-item a {
  color: #333;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.badge {
  background: rgb(248, 216, 31);
  color: #602209;
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 12px;
  margin-right: 8px;
  white-space: nowrap;
}

.float-back-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 50px;
  height: 50px;
  background-color: #ffd460;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  text-decoration: none;
  z-index: 999;
}

.float-back-btn:hover {
  background-color: #f07b3f;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
  color: white;
}

.float-back-btn i {
  font-size: 24px;
}

/* 超小屏幕适配 */
@media screen and (max-width: 320px) {
  .content {
    padding: 5px;
  }

  .sheet-item {
    padding: 10px;
  }

  .badge {
    padding: 1px 4px;
    font-size: 10px;
  }
}
