* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: "Microsoft YaHei", sans-serif;
    }
body{background:#e9e2d0}
/* 顶部导航 */
        .nav-top {
            background: #ff8fab;
            padding:0px 12px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            box-shadow: 0 2px 8px rgba(255, 107, 155, 0.2);
            position: sticky;
            top: 0;
            z-index: 10;
        }
        .back-btn {
            display: flex;
            align-items: center;
            color: white;
            background: transparent;
            border: none;padding:10px;
            font-size: 16px;
            cursor: pointer;
            gap: 5px;
        }
        .nav-title {
            color: white;
            font-size: 18px;
            font-weight: 500;
            flex: 1;
            text-align: center;
            margin: 0 10px;
        }
        .nav-icon {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #ff6b9b;
            font-size: 14px;
            cursor: pointer;
        }

    /* 新增搜索框样式 */
    .search-container {
      width: 92%;
      max-width: 800px;
      margin: 15px auto;
      display: flex;
      gap: 8px;
    }
    .search-input {
      flex: 1;
      padding: 10px 15px;
      border: 1px solid #ddd;
      border-radius: 4px;
      font-size: 14px;
      outline: none;
    }
    .search-btn {
      padding: 10px 20px;
      background: #8b5a2b;
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      transition: background 0.3s;
    }
    .search-btn:hover {
      background: #784b24;
    }

    .bookshelf {
      width: 93%;
      max-width: 800px;
      margin: 0 auto 20px;
      background: #e9e2d0;
      padding: 25px 15px;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    .shelf-layer {
      min-height: 180px;
      display: flex;
      align-items: flex-end;
      justify-content:left;
      position: relative;
      margin-bottom: 35px;
      padding-bottom: 15px;
    }
    .shelf-layer::after {
      content: "";
      position: absolute;
      bottom: 3.7px;
      left: 4px;
      right: 4px;
      height: 12px;
      background: #8b5a2b;
      border-radius: 3px 0 0 3px;
      box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
    }
    .book {
      margin: 0 8px;
      border-radius: 3px;
      cursor: pointer;
      position: relative;
      box-shadow: 2px 0 5px rgba(0,0,0,0.15);
      transition: all 0.3s ease;
      color: white;
      padding: 15px 0;
      overflow: hidden;
      display: flex;
      justify-content: center;
    }
    .book:hover {
      transform: translateY(-3px);
      box-shadow: 2px 3px 8px rgba(0,0,0,0.2);
    }
    .book-title {
      font-size: 13px;
      line-height: 18px;
      text-align: center;
    }
    .book-author {
      font-size: 9px;
      line-height: 14px;
      text-align: right;
      opacity: 0.9;
      position: absolute;
      bottom: 15px;
      right: 5px;
      padding-right: 3px;
    }
    /* 分页样式 */
    .pagination {
      display: flex;
      justify-content: center;
      align-items: center;
      margin: 30px auto;
      gap: 10px;
    }
    .pagination-btn {
      padding: 8px 16px;
      background: #8b5a2b;
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      transition: background 0.3s;
    }
    .pagination-btn:disabled {
      background: #ccc;
      cursor: not-allowed;
    }
    .pagination-btn:hover:not(:disabled) {
      background: #784b24;
    }
    .pagination-info {
      color: #666;
      font-size: 14px;
    }