@charset "UTF-8";
body {
  overflow: hidden;
}

.Category-Container {
  height: calc(100dvh - 60px);
}

.searchArea {
  padding: 12px;
  background-color: #f5f5f5;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  height: 44px;
}
.search-box .search-form {
  flex: 1;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
}
.search-box .search-input {
  flex: 1;
  height: 100%;
  border: 1px solid #ddd;
  border-radius: 22px;
  padding: 0 44px 0 16px;
  font-size: 16px;
  outline: none;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}
.search-box .search-input:focus {
  border-color: #4a90e2;
}
.search-box .search-clear {
  position: absolute;
  right: 44px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.search-box .search-clear svg {
  fill: #999;
}
.search-box .search-clear.visible {
  opacity: 1;
}
.search-box .search-submit {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.search-box .search-submit svg {
  fill: #4a90e2;
}

.Top-Category {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  background: #fff;
  max-width: 450px;
  margin: 0 auto;
  border: 1px solid #ddd;
  -webkit-overflow-scrolling: touch;
}
.Top-Category::-webkit-scrollbar {
  display: none;
}
.Top-Category .Top-Category-Item {
  flex: 0 0 auto;
  padding: 12px 18px;
  text-align: center;
}
.Top-Category .Top-Category-Item a {
  font-size: 15px;
  color: #666;
  text-decoration: none;
  display: inline-block;
  padding-bottom: 4px;
  transition: color 0.2s, border-bottom 0.2s;
}
.Top-Category .Top-Category-Item.active {
  color: #0a84ff;
  font-weight: bold;
  border-bottom: 2px solid #0a84ff;
}

.Child-Category-And-Products {
  display: flex;
  flex: 1;
  height: calc(100dvh - 68px - 60px);
  background: #fff;
  overflow: hidden;
  max-width: 450px;
  margin: 0 auto;
  border: 1px solid #ddd;
}
.Child-Category-And-Products .Side-Categories {
  width: 100px;
  background: #f6f6f6;
  border-right: 1px solid #eee;
  overflow-y: auto;
  overflow-x: hidden;
}
.Child-Category-And-Products .Side-Categories .Side-Item {
  padding: 14px 0;
  text-align: center;
  font-size: 0.7rem;
  color: #555;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}
.Child-Category-And-Products .Side-Categories .Side-Item > a {
  color: #555;
  text-decoration: none;
  display: block;
  white-space: normal; /* 正常换行 */
  word-break: keep-all; /* 不在单词内部断开 */
  overflow-wrap: break-word;
  line-height: 1.4;
  padding: 0 2px;
}
.Child-Category-And-Products .Side-Categories .Side-Item.active {
  background: #fff;
  color: #0a84ff;
  font-weight: bold;
}
.Child-Category-And-Products .CategoriesContainer {
  position: relative;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 5px 0 5px 0;
}
.Child-Category-And-Products .CategoriesContainer #loadMoreArea {
  text-align: center;
  padding: 20px;
  font-size: 16px;
  color: #888;
  display: block;
}
.Child-Category-And-Products .CategoriesContainer #loadMoreArea.loading {
  color: #444;
}
.Child-Category-And-Products .CategoryItem {
  display: flex;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: black;
}
.Child-Category-And-Products .CategoryItem:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}
.Child-Category-And-Products .CategoryItem .CategoryImage {
  width: 100px;
  height: 100px;
}
.Child-Category-And-Products .CategoryItem .CategoryImage img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}
.Child-Category-And-Products .CategoryItem .CategoryInfo {
  flex: 1;
  margin-left: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.Child-Category-And-Products .CategoryItem .CategoryInfo .CategoryTitle {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
  color: #0A84FF;
}
.Child-Category-And-Products .CategoryItem .CategoryInfo .CategoryDesc {
  font-size: 14px;
  color: #555;
  margin: 0;
  line-height: 1.4;
}

/* 1️⃣ 正常允许在空格处换行 */
.word-wrap {
  white-space: normal;
  word-wrap: break-word; /* 老版本兼容 */
  overflow-wrap: break-word; /* 标准属性 */
}

/* 2️⃣ 强制长单词也能断开（即使没有空格，比如 Orequip） */
.force-break {
  word-break: break-all;
  overflow-wrap: break-word;
}

/* 3️⃣ 保留空格但也允许在空格处换行（推荐用于多单词标题） */
.keep-space-break {
  white-space: pre-wrap; /* 保留多余空格 */
  word-break: break-word; /* 长单词时换行 */
}

.space-break {
  white-space: normal; /* 正常换行 */
  word-break: keep-all; /* 不在单词内部断开 */
}

/*# sourceMappingURL=category.css.map */
