/* ==================== 全局与基础布局 ==================== */
* { margin:0; padding:0; box-sizing:border-box; font-family:system-ui,-apple-system,sans-serif; }
html, body { height:100%; }
body {
  background-color:#140f2b;
  color:#fff;
  max-width:425px;
  margin:0 auto;
  min-height:100vh;
  padding-bottom:90px;
  position:relative;
}
.top-bar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 18px;
  font-size:20px;
  font-weight:500;
}
.top-right {
  display:flex; align-items:center; gap:16px;
}
.qrcode-text {
  font-size:18px;
  display:flex;
  align-items:center;
  gap:6px;
  cursor:pointer;
}
.qrcode-svg { width:28px; height:28px; object-fit:contain; display:block; }
.refresh-icon {
  cursor:pointer; display:flex; align-items:center; color:#b0a6d8; transition:color 0.2s;
}
.refresh-icon:hover { color:#fff; }
.refresh-icon.spinning svg { animation:spin 0.8s linear infinite; }
@keyframes spin { 100% { transform:rotate(360deg); } }

.wrap { padding:0 16px; }
.big-card {
  background-color:#1c1638;
  border-radius:22px;
  padding:20px;
  margin-bottom:16px;
}
.row-two {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-bottom:20px;
}
.stat-box {
  background:#130e2b;
  border:1px solid #3b2f66;
  border-radius:14px;
  padding:16px;
}
.stat-title { font-size:16px; color:#e6e3f4; margin-bottom:8px; }
.stat-val { font-size:24px; color:#49e297; font-weight:500; }
.section-title { font-size:17px; margin-bottom:22px; color:#f0edfb; }

/* ==================== 图表核心样式 ==================== */
.circle-wrap {
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
  margin: 40px 0 30px;
  height: 200px;
}

.donut-svg-wrap {
  position: relative;
  width: 200px;
  height: 200px;
}

.donut-svg {
  width: 100%;
  height: 100%;
  overflow: visible; /* 允许扇形放大时不裁切 */
}

/* SVG 扇形样式与动画 */
.sector {
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s ease;
  transform-origin: 100px 100px; /* 围绕圆心放大 */
  cursor: pointer;
}
.sector:hover {
  transform: scale(1.08); /* 单独扇区放大 */
  z-index: 10;
}

/* 中间提示框 */
.tip-box {
  position: absolute;
  z-index: 100;
  background: #fff;
  color: #222;
  padding: 10px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  transform: translate(-50%, -50%);
  pointer-events: none; /* 防止鼠标悬浮时闪烁 */
  white-space: nowrap;
}
.tip-dot {
  width: 12px; 
  height: 12px; 
  border-radius: 50%;
}
/* ==================== 标签与连接线 ==================== */
.label-item {
  position: absolute;
  font-size: 14px;
  color: #fff;
  display: flex;
  transition: color 0.3s ease;
  pointer-events: none;
  z-index: 1;
}
.label-item span {
  display: block;
  white-space: normal;
  max-width: 110px;
  line-height: 1.2;
  text-align: center;
}

/* 位置定位 */
.label-left { top: -10px; left: 0; flex-direction: column; align-items: center; }
.label-right { top: -10px; right: 0; flex-direction: column; align-items: center; }
.label-bottom { bottom: -25px; left: 50%; transform: translateX(-50%); flex-direction: column; align-items: center; }

/* 基础连接线样式 */
.connector-line {
  transition: all 0.3s;
  box-sizing: border-box;
}

/* 左侧投资（蓝色）：先向下竖线，再向右折向圆环 */
.label-left .connector-line {
  position: relative;
  left: 40px;        /* 整体向右移动 60px */
  width: 45px;       /* 折线水平段宽度 */
  height: 40px;      /* 折线垂直段高度 */
  margin-top: 6px;
  border-left: 2px solid #5c6de8;
  border-bottom: 2px solid #5c6de8;
  border-bottom-left-radius: 6px;
}

/* 右侧评分（紫色）：先向下竖线，再向左折向圆环 */
.label-right .connector-line {
  position: relative;
  left: -40px;       /* 整体向左移动 60px */
  width: 45px;       /* 折线水平段宽度 */
  height: 40px;      /* 折线垂直段高度 */
  margin-top: 6px;
  border-right: 2px solid #a374d8;
  border-bottom: 2px solid #a374d8;
  border-bottom-right-radius: 6px;
}

/* 底部推荐（橙色）：垂直向上连入圆环 */
.label-bottom .connector-line {
  width: 0;
  height: 30px;
  margin-bottom: 6px;
  border-left: 2px solid #ff9e7c;
  order: -1;
}

/* 悬浮时文字联动 */
.circle-wrap.hover-active .label-item { color: #7a7396; }
.circle-wrap.hover-active .label-item.active { color: #fff; font-weight: 600; }
/* 悬浮时线条变白 */
.circle-wrap.hover-active .label-item.active .connector-line { border-color: #fff; }

/* ==================== 底部图例 ==================== */
.legend-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-top: 10px;
  padding: 0 5px;
}
.legend {
  display: flex;
  align-items: flex-start;
  color: #c7c0e2;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
  flex: 1;
  justify-content: center;
}
.legend span:first-child {
  display: inline-block;
  width: 14px; 
  height: 14px;
  border-radius: 3px;
  margin-right: 8px;
  margin-top: 2px;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.legend span:last-child {
  white-space: normal; 
  line-height: 1.3;
  text-align: left;
}
.legend.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.legend.active span:first-child { transform: scale(1.4); }

.leg-purple { background:#a374d8; }
.leg-orange { background:#ff9e7c; }
.leg-blue { background:#5c6de8; }

/* ==================== 其他模块样式 ==================== */
.dot-orange { width:12px; height:12px; border-radius:50%; background:#ff9e7c; flex-shrink:0; }
.date-title { display:flex; align-items:center; gap:6px; font-size:16px; margin-bottom:14px; }
.date-icon { cursor:pointer; display:flex; align-items:center; justify-content:center; }
.date-icon svg { display:block; }

.three-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:14px; }
.single-box { background:#130e2b; border:1px solid #3b2f66; border-radius:14px; padding:16px; }
.single-full { grid-column:1 / -1; }
.data-block { background:#130e2b; border:1px solid #3b2f66; border-radius:14px; padding:18px; margin-bottom:14px; }
.block-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; font-size:17px; }
.member-link { color:#b98df0; display:flex; align-items:center; gap:2px; cursor:pointer; }
.member-link svg { display:block; width:40px; height:40px; flex-shrink:0; transition:transform .2s; }
.member-link.open svg { transform:rotate(90deg); }
.grid-5 { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; text-align:center; }
.grid-item .num { font-size:22px; margin-bottom:4px; }
.grid-item .txt { font-size:14px; color:#c7c0e2; }

/* 内联会员名单 */
.team-inline {
  display:none;
  margin-top:16px;
  border-top:1px solid #3b2f66;
  padding-top:14px;
}
.team-inline.show { display:block; }
.team-loading,
.team-empty {
  text-align:center;
  color:#a99bd1;
  font-size:14px;
  padding:16px 0;
}
.team-item {
  background:#1c1638;
  border:1px solid #2e2450;
  border-radius:10px;
  padding:12px;
  margin-bottom:10px;
}
.team-item:last-child { margin-bottom:0; }
.team-item .t-name {
  font-size:15px;
  color:#fff;
  margin-bottom:6px;
  font-weight:500;
}
.team-item .t-row {
  font-size:13px;
  color:#a99bd1;
  margin-top:4px;
  display:flex;
  justify-content:space-between;
}
.team-item .t-row span { color:#e6e3f4; }

.footer-nav {
  position:fixed;
  bottom:0;
  left:50%;
  transform:translateX(-50%);
  width:100%;
  max-width:425px;
  background:#1c1638;
  display:grid;
  grid-template-columns:repeat(5,1fr);
  padding:10px 0 8px;
  z-index:70;
}
.nav-item { text-align:center; font-size:13px; color:#b0a6d8; cursor:pointer; }
.nav-item.active { color:#b97eff; }
.nav-icon { font-size:24px; margin-bottom:4px; display:flex; align-items:center; justify-content:center; height:26px; }
.nav-icon svg { width:22px; height:22px; display:block; }

.date-mask {
  position:fixed; inset:0; z-index:9999; background:rgba(0,0,0,.6);
  display:none; align-items:flex-end; justify-content:center;
}
.date-mask.show { display:flex; }
.date-panel {
  width:100%; max-width:425px; background:#1c1638;
  border-radius:20px 20px 0 0; padding:20px; color:#fff;
}
.date-panel-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; font-size:18px; font-weight:500; }
.date-close { cursor:pointer; color:#b98df0; font-size:16px; }
.date-row { display:flex; gap:12px; margin-bottom:16px; }
.date-field { flex:1; background:#130e2b; border:1px solid #3b2f66; border-radius:10px; padding:10px 12px; }
.date-field label { display:block; font-size:12px; color:#a99bd1; margin-bottom:4px; }
.date-field input { width:100%; background:transparent; border:none; outline:none; color:#fff; font-size:15px; font-family:inherit; }
.date-actions { display:flex; gap:12px; }
.date-actions button { flex:1; border:none; border-radius:10px; padding:12px; font-size:15px; font-family:inherit; cursor:pointer; }
.date-cancel { background:#2b1b47; color:#fff; }
.date-confirm { background:#7b42bc; color:#fff; }
.team-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
}
.t-first-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom:6px;
}
.t-name {
    font-weight: 500;
}
.t-balance {
    color: #f56c6c;
}
.t-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color:#666;
    margin:3px 0;
}
