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

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

/* ===== 内容 ===== */
.content {
  padding: 70px 16px 180px;
}

/* 导航栏 */
.nav-bar {
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  background-color: #fff;
  border-bottom: 1px solid #f0f0f0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

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

.nav-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
}

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

/* ===== 基金卡片 ===== */
.fund-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.fund-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #2B7DF7, #1A6AE0);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(43,125,247,0.3);
}

.fund-icon-image {
  width: 26px;
  height: 26px;
  filter: brightness(0) invert(1);
}

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

.fund-name {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 3px;
}

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

.fund-right {
  text-align: right;
  flex-shrink: 0;
}

.fund-return-green {
  font-size: 22px;
  font-weight: 700;
  color: #F53F3F;
}

.fund-return-red {
  font-size: 18px;
  font-weight: 700;
  color: #2563EB;
}

.fund-return-amber {
  font-size: 18px;
  font-weight: 700;
  color: #F59E0B;
  margin-top: 2px;
}

/* 卡片右上角图标 */
.fund-card-actions {
  position: absolute;
  top: 12px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.fund-card-actions span {
  font-size: 11px;
  color: #999;
}

.action-icon {
  width: 16px;
  height: 16px;
  cursor: pointer;
  filter: brightness(0) saturate(100%) invert(33%) sepia(55%) saturate(500%) hue-rotate(205deg) brightness(90%);
}

/* ===== 图表区块 ===== */
.chart-section {
  margin-bottom: 20px;
}

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

.chart-title {
  font-size: 16px;
  font-weight: 700;
  color: #333;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chart-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2B7DF7;
}

.chart-legend-text {
  font-size: 12px;
  color: #2B7DF7;
}

/* 图表容器 */
.chart-container {
  width: 100%;
  height: 200px;
  position: relative;
  background: #FAFBFD;
  border-radius: 12px;
  padding: 10px 8px 0;
}

.chart-container svg {
  width: 100%;
  height: 100%;
}

.chart-y-label {
  font-size: 10px;
  fill: #999;
}

.chart-x-label {
  font-size: 10px;
  fill: #999;
}

.chart-grid {
  stroke: #F0F0F0;
  stroke-width: 0.5;
}

/* ===== 持仓列表 ===== */
.holdings-section {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: 14px;
}

.holdings-header {
  margin-bottom: 12px;
}

.holdings-title {
  font-size: 16px;
  font-weight: 700;
  color: #333;
}

.holdings-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.holding-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 0.5px solid #F0F0F0;
}

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

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

.holding-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  display: block;
  margin-bottom: 2px;
}

.holding-code {
  font-size: 12px;
  color: #999;
}

.holding-weight {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-right: 16px;
  flex-shrink: 0;
}

.holding-change {
  font-size: 14px;
  font-weight: 700;
  min-width: 60px;
  text-align: right;
  flex-shrink: 0;
}

.holding-change.green {
  color: #F53F3F;
}

.holding-change.red {
  color: #2563EB;
}

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

/* ===== 主要按钮 ===== */
.btn-primary {
  display: block;
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #2B7DF7, #1A6AE0);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(43,125,247,0.3);
  letter-spacing: 1px;
  margin-bottom: 20px;
}
