body { background: var(--bg); }

.fund-hero {
  background: linear-gradient(135deg, #FF6B35 0%, #FF8F5E 50%, #FFB800 100%);
  padding: 24px 16px 32px;
  color: white;
  position: relative;
  overflow: hidden;
}

.fund-hero::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}

.fund-hero::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 0;
  right: 0;
  height: 16px;
  background: var(--bg);
  border-radius: 16px 16px 0 0;
  z-index: 2;
}

.fund-hero-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  position: relative;
  z-index: 3;
}

.fund-hero-desc {
  font-size: 13px;
  opacity: 0.85;
  line-height: 1.5;
  position: relative;
  z-index: 3;
}

.fund-stats-bar {
  display: flex;
  gap: 0;
  margin: -10px 16px 16px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 3;
  overflow: hidden;
}

.fund-stat-item {
  flex: 1;
  text-align: center;
  padding: 16px 8px;
  position: relative;
}

.fund-stat-item + .fund-stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--border-light);
}

.fund-stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.fund-stat-value .unit {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-left: 2px;
}

.fund-stat-label {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

.section { padding: 0 16px; margin-bottom: 16px; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 10px;
}

.section-title { font-size: 16px; font-weight: 600; }

.section-more { font-size: 13px; color: var(--text-tertiary); }

.fund-donate-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.fund-donate-icon {
  font-size: 40px;
  margin-bottom: 8px;
}

.fund-donate-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.fund-donate-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.fund-donate-highlight {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(255,107,53,0.1);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.fund-amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.fund-amount-item {
  padding: 14px 8px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
}

.fund-amount-item:active { transform: scale(0.96); }

.fund-amount-item.selected {
  border-color: var(--primary);
  background: rgba(255,107,53,0.05);
}

.fund-amount-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.fund-amount-credit {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

.fund-custom-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg);
  text-align: center;
  margin-bottom: 12px;
}

.fund-custom-input:focus {
  border-color: var(--primary);
  background: var(--bg-white);
}

.fund-custom-input::placeholder {
  color: var(--text-tertiary);
}

.fund-donate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-full);
  background: var(--primary-gradient);
  color: white;
  font-size: 16px;
  font-weight: 600;
  box-shadow: var(--shadow-primary);
  transition: transform 0.2s;
}

.fund-donate-btn:active { transform: scale(0.97); }

.fund-donate-btn svg { width: 18px; height: 18px; }

.fund-donate-rule {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 12px;
  line-height: 1.5;
}

.fund-donate-rule strong {
  color: var(--primary);
}

.fund-balance-card {
  background: linear-gradient(135deg, #1A1D26 0%, #2D3140 100%);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  color: white;
  position: relative;
  overflow: hidden;
}

.fund-balance-card::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,184,0,0.12);
}

.fund-balance-label {
  font-size: 13px;
  opacity: 0.6;
  margin-bottom: 8px;
}

.fund-balance-value {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
}

.fund-balance-value .unit {
  font-size: 14px;
  font-weight: 400;
  opacity: 0.7;
  margin-left: 4px;
}

.fund-balance-sub {
  display: flex;
  gap: 20px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.fund-balance-sub-item {
  font-size: 12px;
  opacity: 0.7;
}

.fund-balance-sub-item span {
  font-weight: 600;
  opacity: 1;
}

.fund-detail-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.fund-detail-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-light);
}

.fund-detail-tab {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-tertiary);
  transition: all 0.2s;
  position: relative;
}

.fund-detail-tab.active {
  color: var(--primary);
  font-weight: 600;
}

.fund-detail-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--primary);
}

.fund-detail-list {
  padding: 0 16px;
}

.fund-detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
}

.fund-detail-item + .fund-detail-item {
  border-top: 1px solid var(--border-light);
}

.fund-detail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fund-detail-dot.income { background: var(--accent-green); }
.fund-detail-dot.expense { background: var(--accent-red); }

.fund-detail-info { flex: 1; }

.fund-detail-title { font-size: 14px; font-weight: 500; }

.fund-detail-time { font-size: 12px; color: var(--text-tertiary); margin-top: 2px; }

.fund-detail-amount {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.fund-detail-amount.income { color: var(--accent-green); }
.fund-detail-amount.expense { color: var(--accent-red); }

.fund-tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,107,53,0.08);
  border-radius: var(--radius-md);
  margin: 0 16px 16px;
}

.fund-tip svg { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; margin-top: 1px; }

.fund-tip p { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }