.page-onsite-stock-detail, .page-onsite-stock-detail view, .page-onsite-stock-detail text, .page-onsite-stock-detail image, .page-onsite-stock-detail svg, .page-onsite-stock-detail button {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.page-onsite-stock-detail {
  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;
}

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

/* ===== 导航栏 ===== */
.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 {
  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;
}

/* ===== 标签导航 ===== */
.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;
}

.earnings-card {
  margin: 0 16px;
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  position: relative;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.loading-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 0;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #E5E7EB;
  border-top-color: #3B82F6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-size: 14px;
  color: #6B7280;
}

.error-row {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
}

.error-text {
  font-size: 13px;
  color: #2563EB;
}

.empty-advice-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 20px;
  margin-top: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-title {
  font-size: 16px;
  font-weight: 600;
  color: #1F2937;
  margin-bottom: 8px;
}

.empty-desc {
  font-size: 14px;
  color: #6B7280;
  margin-bottom: 4px;
}

.empty-hint {
  font-size: 12px;
  color: #9CA3AF;
}

.earnings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.earnings-title {
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

.earnings-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #EBF5FF;
  padding: 4px 12px;
  border-radius: 20px;
}

.earnings-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4A90E2;
}

.earnings-badge-value {
  font-size: 15px;
  font-weight: 600;
  color: #4A90E2;
}

.chart-wrapper {
  width: 100%;
  height: 180px;
  margin-bottom: 12px;
  position: relative;
}

.advice-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  margin-top: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.advice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F3F4F6;
}

.advice-title {
  font-size: 16px;
  font-weight: 600;
  color: #1F2937;
}

.advice-time {
  font-size: 12px;
  color: #9CA3AF;
}

.advice-stock-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding: 10px 14px;
  background: #F8FAFC;
  border-radius: 10px;
}

.stock-code {
  font-size: 14px;
  font-weight: 600;
  color: #1E40AF;
}

.stock-price {
  font-size: 14px;
  color: #374151;
}

.advice-model-info {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.model-label, .style-label {
  font-size: 12px;
  color: #6B7280;
  padding: 4px 10px;
  background: #F3F4F6;
  border-radius: 12px;
}

.advice-action {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.action-label {
  font-size: 14px;
  color: #6B7280;
}

.action-value {
  font-size: 24px;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: 8px;
}

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

.action-sell {
  color: #F97316;
  background: #FFF7ED;
}

.action-hold {
  color: #6B7280;
  background: #F3F4F6;
}

.advice-row {
  display: flex;
  justify-content: space-around;
  margin-bottom: 16px;
  padding: 12px 0;
  background: #F9FAFB;
  border-radius: 12px;
}

.advice-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.item-label {
  font-size: 12px;
  color: #9CA3AF;
}

.item-value {
  font-size: 16px;
  font-weight: 600;
  color: #1F2937;
}

.advice-summary {
  margin-bottom: 16px;
}

.summary-label {
  display: block;
  font-size: 12px;
  color: #9CA3AF;
  margin-bottom: 8px;
}

.summary-content {
  font-size: 14px;
  color: #4B5563;
  line-height: 1.6;
}

.advice-prices {
  display: flex;
  justify-content: space-around;
  padding-top: 12px;
  border-top: 1px solid #F3F4F6;
}

.price-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.price-label {
  font-size: 12px;
  color: #9CA3AF;
}

.price-value {
  font-size: 14px;
  font-weight: 600;
  color: #1F2937;
}

.price-value.stop-loss {
  color: #2563EB;
}

.price-value.take-profit {
  color: #F53F3F;
}

.stats-row {
  display: flex;
  justify-content: space-around;
  margin: 16px 0;
  padding: 12px 0;
  background: #F8FAFF;
  border-radius: 12px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-label {
  font-size: 12px;
  color: #999;
}

.stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

.stat-correct {
  color: #F53F3F;
}

.stat-wrong {
  color: #2563EB;
}

.stat-profit {
  color: #3370ff;
}

.filter-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.filter-picker {
  flex: 1;
  padding: 10px 14px;
  background: #F5F7FA;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
}

.action-row {
  display: flex;
  gap: 10px;
}

.btn-action {
  flex: 1;
  padding: 12px 0;
  border: none;
  border-radius: 22px;
  background: linear-gradient(135deg, #4A90E2, #357ABD);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-review {
  background: linear-gradient(135deg, #F53F3F, #D32F2F);
}

.btn-delete {
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
}

.content-area {
  background: #F5F7FA;
  padding: 20px 16px 180px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
}

.section-more {
  font-size: 13px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
}

.more-arrow {
  width: 14px;
  height: 14px;
  filter: brightness(0) saturate(100%) invert(60%) sepia(0%) saturate(0%) hue-rotate(0deg);
}

.trade-list {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.trade-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #F5F5F5;
}

.trade-item:last-child {
  border-bottom: none;
}

.trade-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trade-time {
  font-size: 13px;
  color: #999;
}

.trade-action {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.trade-correct {
  color: #F53F3F;
}

.trade-wrong {
  color: #2563EB;
}

.trade-result {
  text-align: right;
}

.trade-check {
  font-size: 13px;
  font-weight: 600;
}

.check-correct {
  color: #F53F3F;
}

.check-wrong {
  color: #2563EB;
}

.trade-empty {
  padding: 40px 0;
  text-align: center;
  color: #999;
  font-size: 14px;
}

/* ===== 基金列表卡片 ===== */
.fund-list-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

/* ===== 列表项 ===== */
.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #F0F0F0;
  overflow: hidden;
}

.list-item:last-child {
  border-bottom: none;
}

.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;
}

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

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

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

.list-info .list-name {
  display: block;
  margin-bottom: 4px;
}

.list-info .list-code {
  text-align: left;
  min-width: auto;
}

.list-actions {
  display: flex;
  gap: 8px;
}

.action-btn {
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
}

.action-evaluate {
  background: linear-gradient(135deg, #3B82F6, #60A5FA);
  color: #fff;
}

.action-review {
  background: #F3F4F6;
  color: #4B5563;
}

.action-delete {
  background: #FEE2E2;
  color: #2563EB;
}

/* ===== 空列表 ===== */
.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;
}
