/* 场外首页进估值页面样式 */

.page-offsite-home-valuation {
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fbff 0%, #f0f7ff 100%);
  position: relative;
}

/* 顶部状态栏 */
.status-bar {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  font-size: 18px;
  font-weight: 500;
  color: #ffffff;
  background: #2574eb;
}

.status-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.signal-icon {
  width: 20px;
  height: 12px;
  position: relative;
}

.signal-icon::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 3px;
  height: 6px;
  background: #fff;
  border-radius: 1px;
  box-shadow: 4px 0 0 #fff, 8px 0 0 #fff, 12px 0 0 #fff, 16px 0 0 #fff;
}

.signal-icon::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 3px;
  height: 3px;
  background: #fff;
  border-radius: 1px;
  box-shadow: 4px 0 0 #fff, 8px 0 0 #fff, 12px 0 0 #fff, 16px 0 0 #fff;
}

.wifi-icon {
  width: 18px;
  height: 12px;
  position: relative;
}

.wifi-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-bottom: none;
  border-radius: 50% 50% 0 0;
}

.wifi-icon::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
}

.battery-icon {
  width: 22px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 3px;
  position: relative;
}

.battery-icon::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 2px;
  width: 2px;
  height: 8px;
  background-color: #fff;
  border-radius: 0 2px 2px 0;
}

.battery-fill {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 16px;
  height: 8px;
  background-color: #fff;
  border-radius: 1px;
}

/* 头部导航 */
.header {
  background: #2574eb;
  padding: 12px 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back-btn {
  font-size: 28px;
  color: #ffffff;
  cursor: pointer;
  line-height: 1;
}

.nav-tabs {
  display: flex;
  gap: 40px;
  align-items: center;
}

.tab-item {
  font-size: 24px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  position: relative;
  cursor: pointer;
}

.tab-item.active {
  color: #ffffff;
}

.tab-item.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
}

.book-icon {
  width: 28px;
  height: 28px;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
}

/* 业绩走势图表 */
.chart-section {
  background: #2574eb;
  padding: 0 20px 32px;
  position: relative;
}

.chart-container {
  position: relative;
  height: 220px;
}

.chart-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 40px;
  background-image:
      linear-gradient(to bottom, transparent 95%, rgba(255,255,255,0.3) 95%),
      linear-gradient(to bottom, transparent 95%, rgba(255,255,255,0.3) 95%),
      linear-gradient(to bottom, transparent 95%, rgba(255,255,255,0.3) 95%),
      linear-gradient(to bottom, transparent 95%, rgba(255,255,255,0.3) 95%);
  background-size: 100% 25%;
  background-repeat: repeat-y;
}

.chart-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 40px;
}

.chart-path {
  fill: url(#chartGradient);
  stroke: #ffffff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-point {
  position: absolute;
  top: 40%;
  left: 65%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background-color: #ffffff;
  border: 2px solid #2574eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.chart-point::after {
  content: '';
  width: 6px;
  height: 6px;
  background-color: #ffffff;
  border-radius: 50%;
}

.chart-tooltip {
  position: absolute;
  top: 28%;
  left: 65%;
  transform: translateX(-50%);
  background: #ffffff;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  color: #2574eb;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 3;
}

.chart-tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #ffffff;
}

.chart-vertical-line {
  position: absolute;
  top: 40%;
  left: 65%;
  transform: translateX(-50%);
  width: 1px;
  height: 60%;
  background-color: rgba(255,255,255,0.5);
  z-index: 1;
}

.chart-y-axis {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 8px;
  font-size: 16px;
  color: rgba(255,255,255,0.8);
}

.chart-x-axis {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  font-size: 16px;
  color: rgba(255,255,255,0.8);
}

/* 功能按钮区 */
.action-buttons {
  margin: -20px 20px 20px;
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  position: relative;
  z-index: 10;
}

.action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.action-icon {
  width: 48px;
  height: 48px;
  background: #e6f0ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2574eb;
  font-size: 24px;
}

.action-text {
  font-size: 18px;
  font-weight: 500;
  color: #000000;
}

/* 基金列表卡片 */
.fund-list-card {
  margin: 0 20px 20px;
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.fund-section {
  margin-bottom: 32px;
}

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

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

.section-title {
  font-size: 24px;
  font-weight: 600;
  color: #000000;
  display: flex;
  align-items: center;
  gap: 8px;
}

.title-icon {
  font-size: 24px;
}

.section-value {
  font-size: 28px;
  font-weight: 700;
}

.value-red {
  color: #2563EB;
}

.value-black {
  color: #000000;
}

.section-subvalue {
  font-size: 16px;
  color: #f59e0b;
  margin-top: 4px;
  text-align: right;
}

.stars {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}

.star {
  font-size: 20px;
  color: #fbbf24;
}

.fund-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 24px;
}

.fund-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fund-name {
  font-size: 22px;
  font-weight: 600;
  color: #000000;
}

.fund-desc {
  font-size: 14px;
  color: #9ca3af;
}

.fund-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.fund-rate {
  font-size: 28px;
  font-weight: 700;
}

.fund-subrate {
  font-size: 14px;
  color: #9ca3af;
}

.portfolio-desc {
  font-size: 14px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}

/* 底部导航 */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: #ffffff;
  border-radius: 24px 24px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.05);
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  position: relative;
}

.nav-icon {
  width: 32px;
  height: 32px;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-text {
  font-size: 14px;
  font-weight: 500;
}

.nav-active {
  color: #2574eb;
}

.nav-inactive {
  color: #9ca3af;
}

.add-btn {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 64px;
  background: #2574eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 32px;
  box-shadow: 0 4px 12px rgba(37, 116, 235, 0.3);
  cursor: pointer;
}

/* 底部指示条 */
.home-indicator {
  position: fixed;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 4px;
  background: #d1d5db;
  border-radius: 2px;
  z-index: 101;
}

/* 深色模式 */
@media (prefers-color-scheme: dark) {
  .page-offsite-home-valuation {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  }

  .action-buttons {
    background: #334155;
  }

  .action-text {
    color: #f3f4f6;
  }

  .fund-list-card {
    background: #334155;
  }

  .section-title {
    color: #f3f4f6;
  }

  .fund-name {
    color: #f3f4f6;
  }

  .bottom-nav {
    background: #334155;
  }

  .nav-text {
    color: #f3f4f6;
  }

  .nav-inactive {
    color: #64748b;
  }
}

/* 响应式设计 */
@media (max-width: 375px) {
  .status-bar {
    padding: 0 16px;
    font-size: 16px;
  }

  .header {
    padding: 10px 16px 20px;
  }

  .back-btn {
    font-size: 24px;
  }

  .nav-tabs {
    gap: 30px;
  }

  .tab-item {
    font-size: 20px;
  }

  .book-icon {
    width: 24px;
    height: 24px;
    font-size: 20px;
  }

  .chart-section {
    padding: 0 16px 28px;
  }

  .chart-container {
    height: 200px;
  }

  .action-buttons {
    margin: -16px 16px 16px;
    padding: 20px;
  }

  .action-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .action-text {
    font-size: 16px;
  }

  .fund-list-card {
    margin: 0 16px 16px;
    padding: 20px;
  }

  .section-title {
    font-size: 20px;
  }

  .section-value {
    font-size: 24px;
  }

  .section-subvalue {
    font-size: 14px;
  }

  .fund-name {
    font-size: 20px;
  }

  .fund-desc {
    font-size: 12px;
  }

  .fund-rate {
    font-size: 24px;
  }

  .fund-subrate {
    font-size: 12px;
  }

  .bottom-nav {
    height: 70px;
  }

  .nav-icon {
    width: 28px;
    height: 28px;
    font-size: 24px;
  }

  .nav-text {
    font-size: 12px;
  }

  .add-btn {
    width: 56px;
    height: 56px;
    font-size: 28px;
    top: -20px;
  }

  .home-indicator {
    width: 160px;
  }
}

@media (max-width: 320px) {
  .nav-tabs {
    gap: 20px;
  }

  .tab-item {
    font-size: 18px;
  }

  .action-buttons {
    padding: 16px;
  }

  .action-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .action-text {
    font-size: 14px;
  }

  .section-title {
    font-size: 18px;
  }

  .fund-name {
    font-size: 18px;
  }

  .bottom-nav {
    height: 64px;
  }

  .add-btn {
    width: 48px;
    height: 48px;
    font-size: 24px;
    top: -16px;
  }
}
