/* 重置样式 */
.page-offsite-favorite, .page-offsite-favorite view, .page-offsite-favorite text, .page-offsite-favorite image, .page-offsite-favorite svg, .page-offsite-favorite button {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.page-offsite-favorite {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'SF Pro SC', 'Helvetica Neue', Arial, sans-serif;
  background: #F5F5F5;
  min-height: 100vh;
  overflow-x: hidden;
  color: #333;
}

/* ===== 蓝色背景 ===== */
.blue-bg {
  background: #2B6AFF;
  padding-bottom: 24px;
  position: relative;
  padding-top: 110px;
}

/* ===== 导航栏 ===== */
.nav-bar {
  position: absolute;
  top: 50px;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  z-index: 20;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
}

.nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-icon {
  width: 20px;
  height: 20px;
}

.blue-bg::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 20px;
  background: #F5F5F5;
  border-radius: 20px 20px 0 0;
}

/* ===== 标签导航 ===== */
.tab-nav {
  margin: 0 16px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: relative;
  z-index: 10;
  display: flex;
  padding: 0 8px;
}

.tab-nav-item {
  flex: 1;
  text-align: center;
  padding: 14px 0 12px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  color: #666;
  transition: color 0.2s;
}

.tab-nav-item.active {
  color: #2B6AFF;
  font-weight: 600;
}

.tab-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: #2B6AFF;
}

/* ===== 内容区域 ===== */
.content-area {
  padding: 20px 16px 180px;
  background: #F5F5F5;
  border-radius: 20px 20px 0 0;
}

/* ===== 基金列表 ===== */
.fund-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fund-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.fund-item:last-child {
  margin-bottom: 0;
}

.fund-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fund-icon-blue {
  background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
}

.fund-icon-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  width: 22px;
  height: 22px;
}

.fund-icon-info.blue div {
  background: #3B82F6;
  border-radius: 2px;
}

.fund-info {
  flex: 1;
  min-width: 0;
}

.fund-name {
  font-size: 15px;
  font-weight: 600;
  color: #1F2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.fund-code {
  font-size: 12px;
  color: #9CA3AF;
}

/* ===== 列表项（兼容旧样式） ===== */
.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  overflow: hidden;
  flex-shrink: 0;
}

.list-item:last-child {
  margin-bottom: 0;
}

.list-name {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  flex: 1;
  min-width: 0;
  margin-right: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 1;
}

.list-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.list-code {
  font-size: 13px;
  color: #999;
  font-variant-numeric: tabular-nums;
  min-width: 60px;
  text-align: right;
}

.list-valuation {
  font-size: 13px;
  color: #999;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  min-width: 50px;
  text-align: right;
}

.valuation-up {
  color: #2563EB;
}

.valuation-down {
  color: #F53F3F;
}

.list-conclusion {
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
}

.conclusion-buy {
  color: #2563EB;
  background: #EFF6FF;
}

.conclusion-sell {
  color: #F53F3F;
  background: #FEF2F2;
}

.conclusion-hold {
  color: #999;
  background: #f5f5f5;
}

.list-btn {
  font-size: 13px;
  color: #2563EB;
  padding: 4px 10px;
  border-radius: 12px;
  background: #EFF6FF;
}

.list-btn-primary {
  color: #fff;
  background: #2B6AFF;
}

.list-action {
  font-size: 13px;
  color: #2563EB;
  padding: 4px 10px;
  border-radius: 12px;
  background: #EFF6FF;
  flex-shrink: 0;
}

.list-action-area {
  flex-shrink: 0;
}

.list-action-primary {
  color: #fff;
  background: #2B6AFF;
}

.list-remove {
  font-size: 13px;
  color: #2563EB;
  padding: 4px 10px;
  border-radius: 12px;
  background: #EFF6FF;
}

/* ===== 空列表 ===== */
.empty-list {
  padding: 40px 20px;
  text-align: center;
}

.empty-icon {
  display: block;
  font-size: 48px;
  color: #D1D5DB;
  margin-bottom: 16px;
}

.empty-text {
  display: block;
  font-size: 16px;
  color: #6B7280;
  margin-bottom: 8px;
}

.empty-hint {
  display: block;
  font-size: 13px;
  color: #9CA3AF;
}

/* ===== 操作按钮 ===== */
.btn-cta {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 25px;
  background: #2B6AFF;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 18px;
  box-shadow: 0 4px 14px rgba(43,106,255,0.3);
  letter-spacing: 1px;
}
