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

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

/* ===== 蓝色背景 ===== */
.blue-bg {
  background: linear-gradient(180deg, #1E40AF 0%, #2563EB 100%);
  padding-bottom: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

/* ===== 导航栏 ===== */
.nav-bar {
  height: 60px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0 16px;
}

.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;
  filter: brightness(0) invert(1);
}

/* ===== 主要数据卡片区块 ===== */
.data-section {
  padding: 70px 16px 0;
}

/* 蓝色头部卡片 */
.blue-card {
  background: linear-gradient(135deg, #2B7DF7 0%, #1A6AE0 100%);
  border-radius: 18px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  margin-bottom: -20px;
  z-index: 1;
}

.blue-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}

.blue-card::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: 40px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.blue-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.blue-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.blue-card-title-line {
  width: 36px;
  height: 3px;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
  margin-top: 6px;
}

.blue-card-refresh {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.refresh-icon {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

/* 白色内容卡片 */
.white-card {
  background: #fff;
  border-radius: 16px;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  padding: 20px;
}

/* 基金信息行 */
.fund-info-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

/* 3D硬币图标 */
.coin-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  position: relative;
}

.coin-icon svg {
  width: 56px;
  height: 56px;
}

.fund-info-text {
  flex: 1;
}

.fund-name-main {
  font-size: 17px;
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
}

.fund-name-sub {
  font-size: 13px;
  color: #999;
  margin-bottom: 6px;
}

.fund-return-tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #E85D04;
  background: #FFF4EC;
  padding: 3px 10px;
  border-radius: 12px;
}

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

.chart-container {
  width: 100%;
  height: 140px;
  position: relative;
}

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

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

/* ===== 功能列表 ===== */
.func-list {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.func-item {
  display: flex;
  align-items: center;
  padding: 16px;
  border-radius: 14px;
  cursor: pointer;
  gap: 12px;
}

.func-item-blue {
  background: #F0F5FF;
}

.func-item-white {
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}

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

.func-icon-blue {
  background: #E0EDFF;
}

.func-icon-light {
  background: #F5F5F5;
}

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

.func-icon-image-light {
  width: 22px;
  height: 22px;
  filter: brightness(0) saturate(100%) invert(60%) sepia(0%) saturate(0%) hue-rotate(0deg);
}

.func-text {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  color: #333;
}

.func-arrow-image {
  width: 16px;
  height: 16px;
  filter: brightness(0) saturate(100%) invert(70%) sepia(0%) saturate(0%) hue-rotate(0deg);
}

.func-arrow-image-light {
  width: 16px;
  height: 16px;
  filter: brightness(0) saturate(100%) invert(70%) sepia(0%) saturate(0%) hue-rotate(0deg);
}

/* ===== 持仓明细 ===== */
.holdings-section {
  padding: 0 16px 180px;
}

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

.holdings-list {
  background: #fff;
  border-radius: 14px;
  padding: 8px 16px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}

.holdings-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 0.5px solid #F0F0F0;
}

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

.holdings-item-left {
  flex: 1;
  min-width: 0;
}

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

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

.holdings-item-right {
  text-align: right;
}

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

.holdings-item-change {
  font-size: 13px;
  font-weight: 600;
}

.holdings-item-change.positive {
  color: #F53F3F;
}

.holdings-item-change.negative {
  color: #2563EB;
}
