/* ===================== 全局基础样式 ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f5f7fa;
  color: #333;
  font-size: 14px;
  line-height: 1.5;
}
button {
  border: none;
  outline: none;
  cursor: pointer;
  background: none;
  font-family: inherit;
}
input {
  outline: none;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 14px;
  font-family: inherit;
  width: 100%;
}
input:focus {
  border-color: #1677ff;
}

/* ===================== 通用按钮样式 ===================== */
.primary-btn {
  background: #1677ff;
  color: #fff;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 14px;
  transition: background 0.2s;
}
.primary-btn:hover {
  background: #4096ff;
}
.primary-btn.small {
  padding: 6px 12px;
  font-size: 13px;
}
.cancel-btn {
  background: #fff;
  color: #666;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 14px;
  transition: all 0.2s;
}
.cancel-btn:hover {
  color: #1677ff;
  border-color: #1677ff;
}
.text-btn {
  color: #1677ff;
  font-size: 14px;
  padding: 4px 8px;
}
.tip-text {
  color: #ff4d4f;
  font-size: 12px;
  margin-top: 8px;
  text-align: center;
}
.loading {
  text-align: center;
  color: #999;
  padding: 30px 0;
  font-size: 13px;
}
.empty-page {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

/* ===================== 登录注册页 ===================== */
.auth-box {
  max-width: 360px;
  margin: 100px auto;
  background: #fff;
  border-radius: 8px;
  padding: 30px 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  display: block;
}
.auth-tabs {
  display: flex;
  margin-bottom: 24px;
  border-bottom: 1px solid #f0f0f0;
}
.tab-btn {
  flex: 1;
  padding: 10px 0;
  font-size: 16px;
  color: #666;
  position: relative;
}
.tab-btn.active {
  color: #1677ff;
  font-weight: 500;
}
.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 2px;
  background: #1677ff;
  border-radius: 1px;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-form .primary-btn {
  margin-top: 8px;
  width: 100%;
  padding: 10px;
  font-size: 15px;
}

/* ===================== 主应用框架 ===================== */
/* 主应用默认隐藏，由 JS 根据登录状态控制 display */
.main-app {
  min-height: 100vh;
  display: none;
  flex-direction: column;
}
.page-content {
  flex: 1;
  padding-bottom: 60px;
}
.page-item {
  display: none;
}
.page-item.active {
  display: block;
}
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}
.page-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}
.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* 汇总数据栏 - 位于标题下方 */
.fund-summary-bar {
  display: flex;
  align-items: flex-start;
  background: #fff;
  padding: 0 16px 14px;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 57px;
  z-index: 9;
}
.summary-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.summary-label {
  font-size: 14px;
  color: #333;
  line-height: 1.2;
  font-weight: 500;
}
.summary-value {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
}
.summary-value.profit { color: #f5222d; }
.summary-value.loss { color: #52c41a; }

/* 分组选择器通用 */
.group-select {
  padding: 6px 8px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 13px;
  background: #fff;
  outline: none;
  cursor: pointer;
}
.group-select:focus {
  border-color: #1677ff;
}

/* 分组标签栏 */
.group-tab-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 8px 16px;
  position: sticky;
  top: 113px;
  z-index: 6;
}
.group-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  flex: 1;
  padding: 6px 0;
  scrollbar-width: none;
}
.group-tabs::-webkit-scrollbar {
  display: none;
}
.group-tab-item {
  flex-shrink: 0;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
}
.group-tab-item.active {
  background: #e6f4ff;
  color: #1677ff;
  font-weight: 500;
}
.group-tab-item:hover {
  background: #f5f7fa;
}
/* 分组管理按钮缩小字体 */
#openGroupManageBtn {
  font-size: 12px;
  flex-shrink: 0;
}

/* 底部导航 */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  display: flex;
  z-index: 20;
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #8c8c8c;
  font-size: 12px;
  cursor: pointer;
  transition: color 0.2s ease;
}
.nav-item.active {
  color: #1677ff;
}
.nav-icon {
  font-size: 22px;
  line-height: 1;
  font-weight: 600;
}

/* ===================== 基金列表（彻底重铸版） ===================== */
/*
 * 设计原则：
 * 1. 所有列宽度平均分配（flex: 1），间距用 gap 控制
 * 2. 所有列内容居中对齐（text-align: center）
 * 3. 表头不换行，数据行基金名称可换行完整显示
 * 4. PC/手机响应式适配
 */

/* === 表头与数据行容器 === */
.fund-list-header,
.fund-item {
  display: flex;
  align-items: center;
  padding: 12px 8px;
  box-sizing: border-box;
  gap: 8px;
}

.fund-list-header {
  background: #f5f7fa;
  font-size: 12px;
  font-weight: 500;
  color: #666;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 145px;
  z-index: 5;
}

.fund-item {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background 0.15s ease;
  min-height: 48px;
}

.fund-item:hover {
  background: #fafbfc;
}

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

/* === 列：平均分配宽度，全部居中对齐 === */
.col {
  flex: 1 1 0;
  min-width: 0;
  box-sizing: border-box;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* 名称列占更大宽度比例（占 3 份），其他数字列各占 1.5 份 */
.col-name {
  flex: 3 1 0;
}

.col-value,
.col-day-profit,
.col-total-profit {
  flex: 1.5 1 0;
}

/* 操作列固定宽度 */
.col-action {
  flex: 0 0 32px;
}

/* === 表头单元格 === */
.fund-list-header .col {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === 净值/估值、当日收益 — 表头 === */
.fund-list-header .col-value,
.fund-list-header .col-day-profit {
  padding-left: 0;
}

/* 可排序表头 */
.sortable-th {
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: color 0.15s;
  position: relative;
  padding-right: 12px;
}

.sortable-th:hover {
  color: #1677ff;
}

.sortable-th::after {
  content: '⇅';
  font-size: 10px;
  color: #d9d9d9;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.sortable-th.desc::after {
  content: '↓';
  color: #1677ff;
}

.sortable-th.asc::after {
  content: '↑';
  color: #1677ff;
}

/* === 基金名称列：整体在列内居中（与其他列自适应一致） === */
.fund-name-info {
  width: 100%;
  align-items: flex-start;   /* 整体在列内左对齐 */
  text-align: left;
}

.fund-name-info .name {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  line-height: 1.4;
  word-break: break-all;
  overflow-wrap: break-word;
  white-space: normal;
  text-align: left;           /* 多行时每行都左对齐 */
  width: 100%;
  max-width: 100%;
}

.fund-name-info .sub {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin-top: 4px;
  font-size: 11px;
  color: #999;
  line-height: 1;
  width: 100%;
}

.fund-name-info .sub .fund-code-cell,
.fund-name-info .sub span:not(.group-tag) {
  white-space: nowrap;
}

.updated-tag {
  display: inline-block;
  font-size: 10px;
  padding: 1px 4px;
  background: #e6f4ff;
  color: #1677ff;
  border-radius: 2px;
  margin-left: 4px;
  white-space: nowrap;
  vertical-align: middle;
}

/* 分组首字符小标签 */
.group-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  line-height: 1;
  font-size: 11px;
  font-weight: 600;
  color: #1677ff;
  background: #e6f4ff;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: middle;
}

/* === 净值/估值列：内容右移1px === */
.fund-value-info {
  width: 100%;
  padding-left: 1px;
  box-sizing: border-box;
}

.fund-value-info .rate {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.fund-value-info .price {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
  white-space: nowrap;
}

/* === 当日收益列：内容右移1px === */
.fund-day-profit {
  width: 100%;
  padding-left: 1px;
  box-sizing: border-box;
}

.fund-day-profit .day-profit-num {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.fund-day-profit .net-date {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
  white-space: nowrap;
}

/* === 总收益列：内容右移1px === */
.fund-total-profit {
  width: 100%;
  padding-left: 1px;
  box-sizing: border-box;
}

.fund-total-profit .total-profit-num {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.fund-total-profit .total-rate {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
  white-space: nowrap;
}

/* === 涨跌颜色 === */
.profit { color: #f5222d; }
.loss { color: #52c41a; }

/* === 操作按钮 === */
.action-btn {
  font-size: 18px;
  color: #999;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  border-radius: 4px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s;
}

.action-btn:hover {
  background: #f0f0f0;
  color: #666;
}

.action-btn:active {
  background: #e8e8e8;
}

/* === PC端适配（宽度 >= 768px）=== */
@media (min-width: 768px) {
  .fund-list-header,
  .fund-item {
    padding: 14px 16px;
    gap: 12px;
  }

  .fund-name-info .name {
    font-size: 14px;
  }

  .fund-name-info .sub {
    font-size: 12px;
    gap: 12px;
  }

  .fund-value-info .rate,
  .fund-day-profit .day-profit-num,
  .fund-total-profit .total-profit-num {
    font-size: 15px;
  }

  .fund-value-info .price,
  .fund-day-profit .net-date,
  .fund-total-profit .total-rate {
    font-size: 12px;
  }

  .col-action {
    flex: 0 0 40px;
  }

  .action-btn {
    font-size: 20px;
    width: 36px;
    height: 36px;
    line-height: 36px;
  }
}

/* === 手机端适配（宽度 < 768px）=== */
@media (max-width: 767px) {
  .fund-list-header {
    font-size: 11px;
    top: 120px;
  }

  .fund-list-header .col {
    font-size: 11px;
  }

  .fund-name-info .name {
    font-size: 12px;
  }

  .fund-name-info .sub {
    font-size: 10px;
  }

  .fund-value-info .rate,
  .fund-day-profit .day-profit-num,
  .fund-total-profit .total-profit-num {
    font-size: 13px;
  }

  .fund-value-info .price,
  .fund-day-profit .net-date,
  .fund-total-profit .total-rate {
    font-size: 10px;
  }

  .updated-tag {
    font-size: 9px;
    padding: 1px 3px;
  }
}

/* ===================== 右键操作菜单 ===================== */
.context-menu {
  position: fixed;
  width: 120px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  z-index: 100;
  overflow: hidden;
}
.menu-item {
  padding: 10px 16px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  border-bottom: 1px solid #f5f5f5;
}
.menu-item:last-child {
  border-bottom: none;
}
.menu-item:hover {
  background: #f5f7fa;
}
.menu-item.danger {
  color: #ff4d4f;
}
.menu-item.records {
  color: #1677ff;
}

/* ===================== 弹窗通用 ===================== */
.modal-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}
.modal-container {
  background: #fff;
  border-radius: 8px;
  width: 100%;
  max-width: 360px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
}
.modal-header h3 {
  font-size: 16px;
  font-weight: 600;
}
.close-btn {
  font-size: 22px;
  color: #999;
  line-height: 1;
}
.close-btn:hover {
  color: #333;
}
.modal-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}
.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 12px 16px;
  border-top: 1px solid #f0f0f0;
}
.form-item {
  margin-bottom: 16px;
}
.form-item label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #666;
}
.form-desc {
  font-size: 12px;
  color: #999;
  margin-top: 6px;
}

/* 分组列表弹窗 */
.group-list {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #f0f0f0;
  border-radius: 4px;
}
.group-option {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f5f5f5;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.group-option:last-child {
  border-bottom: none;
}
.group-option:hover {
  background: #f5f7fa;
}
.group-option.active {
  color: #1677ff;
  background: #e6f4ff;
}
.group-option input {
  width: auto;
  margin: 0;
}

/* 分组管理列表 */
.manage-group-list {
  max-height: 400px;
  overflow-y: auto;
}
.manage-group-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
}
.manage-group-item:last-child {
  border-bottom: none;
}
.manage-group-name {
  flex: 1;
  font-size: 14px;
}
.manage-group-actions {
  display: flex;
  gap: 8px;
}
.manage-group-actions .text-btn {
  font-size: 12px;
  padding: 2px 6px;
}
.manage-group-actions .text-btn.danger {
  color: #ff4d4f;
}
.sort-handle {
  cursor: grab;
  color: #ccc;
  margin-right: 8px;
  user-select: none;
}
.sort-handle:active {
  cursor: grabbing;
}

/* ===================== 交易记录弹窗 ===================== */
.log-list {
  max-height: 60vh;
  overflow-y: auto;
}
.log-item {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}
.log-item:last-child {
  border-bottom: none;
}
.log-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.log-type-add {
  color: #f5222d;
  font-weight: 500;
}
.log-type-reduce {
  color: #52c41a;
  font-weight: 500;
}
.log-time {
  font-size: 12px;
  color: #999;
}
.log-row1, .log-row2 {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 13px;
  color: #666;
}

/* ===================== 基金详情页 ===================== */
.detail-content {
  padding: 12px;
  padding-bottom: 80px;
}
.detail-section {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}
.section-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: #333;
  border-left: 3px solid #1677ff;
  padding-left: 8px;
}

/* 信息网格（三列等宽布局） */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px 12px;
}
.empty-cell { text-align: center; color: #999; padding: 16px; }

/* 通用数据表格 —— 表头与数据行严格垂直对齐 */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
.data-table thead th { background: #fafafa; color: #666; font-weight: 500; padding: 8px 10px; border-bottom: 1px solid #eee; white-space: nowrap; vertical-align: middle; text-align: center; }
.data-table tbody td { padding: 7px 10px; border-bottom: 1px solid #f5f5f5; vertical-align: middle; text-align: center; word-break: break-all; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #fafafa; }

/* 基金经理卡片 */
.manager-card { border: 1px solid #eee; border-radius: 8px; padding: 12px; margin-bottom: 10px; }
.manager-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.manager-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.manager-name { font-size: 15px; font-weight: 600; color: #333; }
.manager-star { color: #faad14; font-size: 13px; }
.manager-section { margin-top: 8px; padding-top: 8px; border-top: 1px solid #f0f0f0; }
.manager-section-title { font-size: 12px; color: #999; margin-bottom: 4px; font-weight: 500; }
.info-row { display: flex; gap: 6px; font-size: 13px; line-height: 1.6; }
.info-row .info-label { color: #999; min-width: 70px; }

/* 同类型基金涨幅榜 */
.rank-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: flex-start; }
.rank-period { font-size: 12px; color: #999; min-width: 50px; padding-top: 4px; }
.rank-items { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.rank-item { display: flex; align-items: center; gap: 4px; background: #f5f5f5; border-radius: 4px; padding: 3px 8px; font-size: 12px; }
.rank-code { color: #1677ff; }
.rank-name { color: #333; }
.rank-change { font-weight: 500; }

/* 阶段涨幅网格 */
.perf-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px 12px; }
.perf-item { display: flex; flex-direction: column; gap: 4px; }
.perf-item .perf-label { font-size: 12px; color: #999; }
.perf-item .perf-value { font-size: 14px; font-weight: 500; }

/* 板块标题行（标题+右侧按钮） */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.section-header .section-title { margin: 0; }

/* 基金数据 / 持有明细 共用 4 列网格（两行，每行4项） */
#fundDataGrid, #holdInfoGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 14px 12px;
}

/* 净值折线图 */
#navChart {
  background: #fff;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

/* 时间段切换 tab（单位净值折线图下方） */
#navChartTabs {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  gap: 8px;
  padding: 10px 0 0;
  margin-top: 4px;
}
#navChartTabs .chart-tab {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  border-radius: 6px;
  background: #fafafa;
  border: 1px solid #eee;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  user-select: none;
  white-space: nowrap;
  min-width: 0;
}
#navChartTabs .chart-tab:hover {
  background: #f0f0f0;
}
#navChartTabs .chart-tab.active {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
  font-weight: 500;
}

/* 累计业绩走势摘要 — 不换行，随容器宽度收缩 */
.grand-total-summary {
  display: flex;
  flex-wrap: nowrap;
  gap: 0 14px;
  align-items: center;
  font-size: 12px;
  color: #555;
  margin: 2px 0 0 0;
  min-height: 20px;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}
.gs-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
}
.gs-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* 累计业绩折线图 — 宽度100%自适应 */
#grandTotalChart {
  background: #fff;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

/* 累计业绩走势 tab — 横排、等距、激活高亮、总宽度≤图表宽度 */
#grandTotalTabs {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
  gap: 8px;
}
#grandTotalTabs .chart-tab {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  border-radius: 6px;
  background: #fafafa;
  border: 1px solid #eee;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  user-select: none;
  white-space: nowrap;
  min-width: 0;
}
#grandTotalTabs .chart-tab:hover {
  background: #f0f0f0;
}
#grandTotalTabs .chart-tab.active {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
  font-weight: 500;
}

/* 小按钮 */
.btn { padding: 6px 12px; border: 1px solid #d9d9d9; background: #fff; border-radius: 4px; cursor: pointer; font-size: 13px; color: #333; transition: all 0.2s; }
.btn:hover { border-color: #1677ff; color: #1677ff; background: #f0f7ff; }
.btn-sm { padding: 4px 10px; font-size: 12px; }

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.info-label {
  font-size: 12px;
  color: #999;
}
.info-value {
  font-size: 14px;
  color: #333;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.info-value.rise { color: #f5222d; }
.info-value.fall { color: #52c41a; }
.theme-tag, .fund-type-tag { color: #1677ff; }

/* 净值表格 */
.table-wrap {
  overflow-x: auto;
}
.net-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.net-table th, .net-table td {
  padding: 8px 6px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}
.net-table th {
  background: #fafafa;
  font-weight: 500;
  color: #666;
}
.net-table th.net-date-col,
.net-table td:first-child {
  text-align: left;
  padding-left: 10px;
}
.rise-text { color: #f5222d; }
.fall-text { color: #52c41a; }

/* 历史业绩表格 */
.perf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.perf-table th, .perf-table td {
  padding: 8px 6px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}
.perf-table th {
  background: #fafafa;
  font-weight: 500;
  color: #666;
}
.perf-table th:first-child,
.perf-table td:first-child {
  text-align: left;
  padding-left: 10px;
}

/* 重仓持仓表格 */
.stock-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.stock-table th, .stock-table td {
  padding: 8px 6px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}
.stock-table th {
  background: #fafafa;
  font-weight: 500;
  color: #666;
}
.stock-table .stock-info {
  text-align: left;
}
.stock-table .stock-info .code {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

/* 重仓股更新时间信息 */
.stock-update-info {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
  line-height: 1.6;
}
.stock-update-info .fund-title {
  color: #333;
  font-weight: 500;
}

/* 详情页底部操作栏 */
.detail-action-bar {
  position: fixed;
  bottom: 56px;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  display: flex;
  padding: 8px 8px;
  gap: 4px;
  z-index: 15;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.04);
}
.detail-action-bar.is-detail-only {
  bottom: 0;
  padding: 10px 8px calc(10px + env(safe-area-inset-bottom, 0px));
}
.detail-action-bar .action-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 0;
  font-size: 12px;
  color: #1677ff;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.detail-action-bar .action-item:hover {
  background: #e6f4ff;
  color: #0958d9;
}
.detail-action-bar .action-item.danger {
  color: #ff4d4f;
}
.detail-action-bar .action-item.danger:hover {
  background: #fff1f0;
  color: #cf1322;
}
.detail-action-bar .action-icon {
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
}

/* ===================== 骨架屏样式 ===================== */
.sk-line {
  display: block;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(90deg, #eceff3 0%, #f5f7fa 50%, #eceff3 100%);
  background-size: 200% 100%;
  animation: sk-shimmer 1.2s ease-in-out infinite;
  margin: 4px 0;
}
.sk-line-long { width: 85%; height: 14px; }
.sk-line-mid  { width: 60%; height: 14px; }
.sk-line-short { width: 50%; height: 12px; }
.sk-line-small { width: 24px; height: 24px; border-radius: 6px; }
.skeleton-item {
  opacity: 0.85;
  cursor: default;
  pointer-events: none;
}
@keyframes sk-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}