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

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

/* ===== 蓝色背景 ===== */
.blue-bg {
  background: linear-gradient(180deg, #1E40AF 0%, #2563EB 100%);
  padding: 60px 0 30px;
}

/* ===== 搜索栏 ===== */
.search-bar {
  margin: 0 16px 16px;
  background: rgba(255,255,255,0.95);
  border-radius: 24px;
  display: flex;
  align-items: center;
  padding: 10px 16px;
  gap: 8px;
}

.search-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.6;
}

.search-bar .search-input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  font-size: 14px;
  color: #6B7280;
}

.search-bar .search-input::placeholder {
  color: #9CA3AF;
}

.search-scan {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  cursor: pointer;
  opacity: 0.6;
}

/* 搜索结果 */
.search-result,
.search-results {
  position: absolute;
  top: 130px;
  left: 16px;
  right: 16px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 100;
  max-height: 300px;
  overflow-y: auto;
}

.search-result-item {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.search-result-item:hover {
  background: #f5f5f5;
}

.search-result-name {
  flex: 1;
  font-size: 14px;
  color: #333;
}

.search-result-code {
  font-size: 13px;
  color: #999;
  font-family: monospace;
}

.search-result-type {
  font-size: 12px;
  color: #2563EB;
  background: #EFF6FF;
  padding: 2px 8px;
  border-radius: 10px;
}

.search-item {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  color: #333;
}

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

.search-item:active {
  background: #f5f5f5;
}

/* ===== 主卡片 ===== */
.main-card {
  margin: 14px 16px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  position: relative;
  z-index: 10;
  padding: 16px;
}

/* 基金信息头部 */
.fund-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #F3F4F6;
}

.fund-full-name {
  font-size: 16px;
  font-weight: 600;
  color: #1F2937;
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fund-code {
  font-size: 13px;
  color: #9CA3AF;
  font-weight: 500;
}

/* ===== 基金卡片显示 ===== */
.fund-cards {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.fund-card {
  flex: 1;
  background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.card-label {
  font-size: 14px;
  color: #6B7280;
  font-weight: 500;
}

.card-value {
  font-size: 24px;
  font-weight: 700;
  color: #1F2937;
  line-height: 28px;
}

/* ===== 数据表盘部分 ===== */
.gauge-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 16px;
}

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

.gauge-container {
  position: relative;
  width: 100%;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* 仪表盘容器 */
.gauge-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  position: relative;
}

.gauge-canvas {
  width: 280px;
  height: 160px;
}

.gauge-value-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 5;
}

.gauge-value {
  font-size: 36px;
  font-weight: 700;
  line-height: 40px;
  color: #6B7280;
}

/* ===== 快速操作 ===== */
.quick-actions {
  margin: 0 16px 14px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  padding: 24px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

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

.action-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2B7AF0, #1E6AD8);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(43,122,240,0.25);
}

.action-image {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.action-label {
  font-size: 13px;
  font-weight: 500;
  color: #333;
}

/* 主页指示器 */
.home-indicator {
  position: fixed;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 134px;
  height: 4px;
  border-radius: 2px;
  background: #333;
  z-index: 101;
}
