/* --- 首页 (index.html) --- */
#page-index .shopping-banner img {
  width: 100%;
  display: block;
}
#page-index .nav-tabs {
  padding: 1rem 1.6rem; /* 10px 16px */
}
#page-index .nav-tabs .wrapper {
  display: flex;
  overflow-x: auto;
  background-color: var(--color-bg-darker);
  border-radius: 2.6rem; /* 26px */
  color: var(--color-text-primary);
  gap: 1rem; /* 10px */
  padding: 0.5rem;
}
#page-index .tab {
  font-size: 1.6rem; /* 16px */
  padding: 0 1.7rem; /* 17px */
  height: 4.3rem; /* 53px */
  display: flex;
  align-items: center;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s;
  border-radius: 2.1rem; /* 为未选中状态也增加圆角 */
}
#page-index .tab img {
  width: 2rem; /* 20px */
  margin-right: 0.8rem; /* 8px */
}
#page-index .tab.active {
  background: var(--gradient-primary);
  font-weight: 600;
}
#page-index .chat-container {
  display: grid;
  gap: 1rem; /* 10px */
  grid-template-columns: repeat(2, 1fr);
}
#page-index .chat-item {
  position: relative;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1.2rem; /* 12px */
  overflow: hidden;
  cursor: pointer;
  min-height: 20rem; /* 200px */
}
#page-index .chat-item .main-img {
  width: 100%;
  height: auto;
  display: block;
}
#page-index .item-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem; /* 10px */
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.8));
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  min-height: 10rem; /* 100px */
}
#page-index .item-title {
  font-size: 1.6rem; /* 16px */
  font-weight: bold;
  margin-bottom: 0.5rem; /* 5px */
}
#page-index .item-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
#page-index .tag {
  font-size: 1.2rem; /* 12px */
  padding: 0.2rem 0.8rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  border: 1px solid var(--color-border-primary);
  color: var(--color-border-primary);
}
#page-index .item-right img,
#page-index .chat-icon-container {
  width: 5rem; /* 50px */
  height: 5rem;
  border-radius: 50%;
}
#page-index .chat-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  padding: 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
#page-index .chat-icon-container:hover {
  transform: scale(1.1);
}
#page-index .chat-icon-container img {
  width: 100%;
  height: 100%;
}
#page-index .tag-video {
  position: absolute;
  top: 1rem; /* 10px */
  left: 1rem;
  width: 4rem; /* 40px */
}
#page-index .tool-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
#page-index .tool-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 1.3rem;
  background-color: var(--color-bg-secondary);
  border-radius: 1rem;
  cursor: pointer;
}
#page-index .tool-name {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 2.1rem;
  font-weight: 700;
}
#page-index .tool-name img {
  width: 3.7rem;
  height: 3.7rem;
}
#page-index .tool-icon img {
  width: 3rem;
}
#page-index footer {
  text-align: center;
  color: var(--color-text-secondary);
  padding-bottom: 1rem;
}
#page-index .cr {
  font-size: 1.5rem;
  margin: 1rem auto;
}
#page-index .po {
  display: flex;
  justify-content: center;
  font-size: 1.5rem;
  gap: 1rem;
}
#page-index .po a {
  color: var(--color-accent-pink);
  text-decoration: underline;
}
