* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", Arial, sans-serif; background: #f5f5f5; color: #333; font-size: 14px; }
.app, .page { min-height: 100vh; padding-bottom: 55px; background: #fff; }

/* 顶部导航 - 简洁白底 */
.top-nav { background: #fff; padding: 12px 15px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; }
.top-nav-center { font-size: 16px; font-weight: 600; color: #333; }
.top-nav-left, .top-nav-right { width: 40px; }
.nav-menu, .nav-add { font-size: 20px; color: #666; }

/* 账户汇总区 */
.account-section { background: #fff; padding: 15px; border-bottom: 1px solid #eee; }
.account-tabs { display: flex; gap: 20px; margin-bottom: 15px; }
.tab { font-size: 14px; color: #999; padding-bottom: 8px; cursor: pointer; }
.tab.active { color: #0066ff; border-bottom: 2px solid #0066ff; }

/* 资产行 */
.asset-row { display: flex; justify-content: space-between; }
.asset-left, .asset-right { }
.asset-label { font-size: 12px; color: #999; margin-bottom: 4px; }
.asset-value { font-size: 24px; font-weight: bold; color: #333; display: flex; align-items: center; gap: 8px; }
.asset-value.red { color: #27ae60; }
.asset-value.green { color: #e74c3c; }
.eye-icon { font-size: 16px; cursor: pointer; }
.asset-tag { font-size: 11px; color: #999; margin-top: 4px; }

/* 功能操作栏 */
.action-bar { background: #fff; padding: 10px 15px; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; }
.fund-count { font-size: 14px; color: #666; }
.action-icons { display: flex; gap: 15px; }
.action-icon { font-size: 16px; color: #666; }
.list-headers { display: flex; gap: 15px; }
.header-col { font-size: 12px; color: #999; display: flex; align-items: center; gap: 2px; cursor: pointer; }
.sort-arrow { font-size: 10px; }

/* 基金列表 */
.funds-section { background: #fff; }
.fund-item { display: flex; padding: 12px 15px; border-bottom: 1px solid #f5f5f5; align-items: center; cursor: pointer; }
.fund-left { flex: 2; min-width: 0; }
.fund-name { font-size: 14px; font-weight: 500; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.fund-info-row { display: flex; align-items: center; gap: 6px; }
.fund-update { font-size: 11px; color: #999; }
.fund-nav { font-size: 13px; color: #333; }
.fund-amount { font-size: 12px; color: #999; }
.fund-days { font-size: 12px; color: #666; margin-left: 10px; }
.fund-delete { font-size: 11px; color: #ff4d4f; cursor: pointer; margin-top: 4px; }
.fund-dayprofit { font-size: 11px; color: #666; margin-top: 2px; }
.fund-dayprofit.up { color: #27ae60; }
.fund-dayprofit.down { color: #e74c3c; }
.fund-star { color: #ffd700; font-size: 12px; }

.fund-col-center { flex: 1; text-align: center; padding: 0 8px; }
.fund-change { font-size: 16px; font-weight: 600; }
.fund-change.up { color: #e74c3c; }
.fund-change.down { color: #27ae60; }
.fund-change.small { font-size: 12px; font-weight: normal; margin-top: 2px; }

.fund-col-right { flex: 1; text-align: right; padding-right: 10px; }
.fund-profit { font-size: 16px; font-weight: 600; }
.fund-profit.up { color: #27ae60; }
.fund-profit.down { color: #e74c3c; }
.fund-profit-rate { font-size: 12px; margin-top: 2px; }
.fund-profit-rate.up { color: #27ae60; }
.fund-profit-rate.down { color: #e74c3c; }

/* 大盘参考栏 */
.market-bar { background: #f9f9f9; padding: 12px 15px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #eee; }
.market-info { display: flex; align-items: center; gap: 10px; }
.market-name { font-size: 13px; color: #666; }
.market-point { font-size: 15px; font-weight: 600; color: #333; }
.market-change { font-size: 13px; font-weight: 500; }
.market-change.up { color: #e74c3c; }
.market-change.down { color: #27ae60; }
.market-arrow { font-size: 18px; color: #ccc; }

/* 底部导航 */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; display: flex; justify-content: space-around; padding: 6px 0 8px; box-shadow: 0 -1px 5px rgba(0,0,0,0.05); z-index: 100; border-top: 1px solid #f0f0f0; }
.nav-item { display: flex; flex-direction: column; align-items: center; padding: 4px 8px; cursor: pointer; }
.nav-item.active .nav-text { color: #0066ff; }
.nav-item.active .nav-icon { transform: scale(1.1); }
.nav-icon { font-size: 20px; margin-bottom: 1px; }
.nav-text { font-size: 10px; color: #999; }

/* 弹窗 */
.modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1000; align-items: center; justify-content: center; }
.modal.show { display: flex; }
.modal-content { background: #fff; border-radius: 12px; width: 90%; max-width: 400px; max-height: 80vh; overflow-y: auto; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 15px; border-bottom: 1px solid #eee; }
.modal-header h3 { font-size: 16px; font-weight: 600; }
.modal-close { font-size: 24px; color: #999; cursor: pointer; }
.modal-body { padding: 15px; }
.modal-footer { display: flex; gap: 10px; padding: 15px; border-top: 1px solid #eee; }

/* 表单 */
.form-group { margin-bottom: 15px; position: relative; }
.form-group label { display: block; font-size: 13px; color: #666; margin-bottom: 6px; }
.form-group input, .form-group select { width: 100%; padding: 10px 12px; border: 1px solid #eee; border-radius: 8px; font-size: 14px; background: #f9f9f9; }
.datetime-picker { display: flex; gap: 10px; }
.datetime-picker input, .datetime-picker select { flex: 1; }
.cost-hint { font-size: 11px; color: #999; margin-top: 4px; }
.search-results { max-height: 200px; overflow-y: auto; margin-top: 8px; border: 1px solid #eee; border-radius: 8px; display: none; background: #fff; position: absolute; width: calc(100% - 30px); z-index: 10; }
.search-results.show { display: block; }
.search-result-item { padding: 10px 12px; border-bottom: 1px solid #f5f5f5; cursor: pointer; }
.search-result-item .name { font-size: 14px; color: #333; }
.search-result-item .code { font-size: 12px; color: #999; }

/* 按钮 */
.btn { flex: 1; padding: 12px; border-radius: 8px; font-size: 15px; text-align: center; cursor: pointer; border: none; }
.btn-primary { background: #0066ff; color: #fff; }
.btn-secondary { background: #f5f5f5; color: #666; }

/* 空状态 */
.empty-tip { text-align: center; padding: 60px 20px; color: #999; }
.empty-tip p { margin-bottom: 20px; }
.btn-add-fund { background: #0066ff; color: #fff; border: none; padding: 12px 30px; border-radius: 20px; font-size: 14px; }

/* 加载 */
.loading { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.3); z-index: 2000; align-items: center; justify-content: center; }
.loading.show { display: flex; }
.spinner { width: 40px; height: 40px; border: 3px solid #f3f3f3; border-top: 3px solid #0066ff; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.up { color: #e74c3c !important; }
.down { color: #27ae60 !important; }

/* 截图导入样式 */
.import-tip { text-align: center; color: #666; margin-bottom: 15px; }
.import-formats { font-size: 12px; color: #999; }
.import-area { 
  border: 2px dashed #ddd; 
  border-radius: 10px; 
  padding: 30px; 
  text-align: center; 
  cursor: pointer;
  margin-bottom: 15px;
}
.import-area:active { border-color: #0066ff; background: #f0f7ff; }
.import-icon { font-size: 40px; margin-bottom: 10px; }
.import-text { color: #666; }
.import-preview { text-align: center; margin-bottom: 15px; }
.import-preview img { max-width: 100%; max-height: 200px; border-radius: 8px; }
.import-result { }
.import-fund-item { 
  background: #f5f5f5; 
  border-radius: 8px; 
  padding: 12px; 
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}
.import-fund-checkbox { margin-right: 10px; width: 18px; height: 18px; }
.import-fund-info { flex: 1; }
.import-fund-name { font-size: 14px; font-weight: 500; }
.import-fund-code { font-size: 12px; color: #999; }
.import-fund-data { font-size: 12px; color: #666; }