/* 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html, body {
  height: 100%;
  overflow: hidden; // 禁止页面整体滚动
}

:host {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-color: #f5f5f5;
  color: #333;
  font-size: 14px;
}

/* 顶部标签栏 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.tab-container {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.tabs {
  flex: 1;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}
.tabs::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.tab {
  display: inline-block;
  padding: 5px 12px;
  margin: 0 5px;
  border-radius: 15px;
  font-size: 14px;
  color: #666;
}
.tab.active {
  background-color: #1890ff;
  color: white;
}

.action-buttons {
  display: flex;
  padding: 0 10px;
}
.action-btn {
  padding: 5px;
  color: #666;
  font-size: 16px;
}

/* 内容区域（滚动区域） */
.content {
  flex: 1;
  overflow-y: auto;
  margin-top: 90px;     /* 避开顶部栏 */
  margin-bottom: 60px;  /* 避开底部栏 */
  padding: 10px;
}

/* 搜索区域 */
.search-container {
  display: flex;
  margin-bottom: 15px;
}
.search-input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 20px;
  outline: none;
  font-size: 14px;
}
.search-buttons {
  display: flex;
  margin-left: 10px;
}
.search-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1890ff;
  color: white;
  border-radius: 50%;
  margin-left: 5px;
}

/* 大按钮组 */
.big-buttons {
  display: flex;
  margin-bottom: 15px;
}
.big-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 5px;
  background-color: white;
  border-radius: 8px;
  margin: 0 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.big-btn:first-child {
  margin-left: 0;
}
.big-btn:last-child {
  margin-right: 0;
}
.big-btn i {
  font-size: 20px;
  margin-bottom: 5px;
  color: #1890ff;
}

/* 饰品列表 */
.item-list {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -5px;
}
.item-card {
  width: calc(50% - 10px);
  margin: 5px;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.item-image {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background-color: #f0f0f0;
  overflow: hidden;
}
.item-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.item-info {
  padding: 10px;
}
.item-name {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.item-wear {
  font-size: 12px;
  color: #666;
  margin-bottom: 5px;
}
.item-price {
  font-size: 16px;
  color: #f56c6c;
  font-weight: bold;
}

/* 底部Tab栏 */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background-color: white;
  border-top: 1px solid #eee;
  z-index: 100;
}
.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  color: #666;
}
.tab-item.active {
  color: #1890ff;
}
.tab-item i {
  font-size: 20px;
  margin-bottom: 2px;
}
.tab-item span {
  font-size: 12px;
}
:host {
  display: block;
  height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
