
/*
  走势曲线样式开始
*/
  :root {
      --primary:#ff8800;
      --primary-light: #E8F3FF;
      --chart-increase: #F53F3F;
      --chart-decrease: #00B42A;
      --text-primary: #1D2129;
      --text-secondary: #4E5969;
      --text-tertiary: #86909C;
      --bg-primary: #FFFFFF;
      --bg-secondary: #F2F3F5;
      --border: #E5E6EB;
      --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
      --radius: 8px;
      --transition: all 0.3s ease;
  }
/* 
  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
  }

  body {
      background-color: var(--bg-secondary);
      color: var(--text-primary);
      line-height: 1.6;
      padding: 20px;
  } */

  .fund-chart-container {
      max-width: 1200px;
      width:100%;
      margin: 0 auto;
      background-color: var(--bg-primary);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      overflow: hidden;
  }


  /* .chart-fund-info {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 16px;
  } */

  /* .chart-fund-name {
      font-size: 24px;
      font-weight: 600;
  } */

  /* .fund-code {
      color: var(--text-tertiary);
      margin-left: 12px;
      font-size: 16px;
  } */

  /* .fund-value {
      text-align: right;
  } */

  .chart-current-value {
      font-size: 28px;
      font-weight: 600;
      margin-right: 12px;
  }

  .chart-value-change {
      font-size: 18px;
      padding: 2px 8px;
      border-radius: 4px;
      display: inline-block;
  }

  .chart-increase {
      color: var(--chart-increase);
      background-color: rgba(245, 63, 63, 0.1);
  }

  .chart-decrease {
      color: var(--chart-decrease);
      background-color: rgba(0, 180, 42, 0.1);
  }

  .chart-time-filter {
      display: flex;
      gap: 8px;
      padding: 0 30px 20px;
      border-bottom: 1px solid var(--border);
      overflow-x: auto;
      scrollbar-width: none;
      margin-top:15px;
  }

  .chart-time-filter::-webkit-scrollbar {
      display: none;
  }

  .chart-time-btn {
      padding: 8px 16px;
      background-color: var(--bg-secondary);
      border: none;
      border-radius: 20px;
      color: var(--text-secondary);
      font-size: 14px;
      cursor: pointer;
      white-space: nowrap;
      transition: var(--transition);
  }

  .chart-time-btn:hover {
      background-color: var(--primary-light);
      color: var(--primary);
  }

  .chart-time-btn.active {
      background-color: var(--primary);
      color: white;
  }

  .chart-container {
      position: relative;
      padding: 30px;
      height: 350px;
      width: 95%;
  }

  #chartCanvas {
      width: 100%;
      height: 100%;
  }

  .chart-tooltip {
      position: absolute;
      background-color: rgba(29, 33, 41, 0.95);
      color: white;
      padding: 12px 16px;
      border-radius: var(--radius);
      font-size: 14px;
      box-shadow: var(--shadow);
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.2s ease;
      z-index: 10;
      min-width: 180px;
  }

  .chart-tooltip-date {
      font-weight: 600;
      margin-bottom: 8px;
      padding-bottom: 8px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .chart-tooltip-value {
      margin-bottom: 4px;
  }

  .chart-legend {
      display: flex;
      gap: 20px;
      padding: 0 30px 20px;
      color: var(--text-secondary);
      font-size: 14px;
  }

  .chart-legend-item {
      display: flex;
      align-items: center;
      gap: 6px;
  }

  .chart-legend-marker {
      width: 12px;
      height: 3px;
      background-color: #BAE6FD;
  }

  .chart-data-summary {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 20px;
      padding: 20px 30px;
      background-color: var(--bg-secondary);
  }
/* 
  .summary-item {
      text-align: center;
  }

  .summary-label {
      color: var(--text-tertiary);
      font-size: 14px;
      margin-bottom: 6px;
  } */

  .chart-summary-value {
      font-size: 18px;
      font-weight: 600;
  }

  .chart-loading {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(255, 255, 255, 0.8);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 5;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
  }

  .chart-loading.active {
      opacity: 1;
      pointer-events: all;
  }

  .chart-spinner {
      width: 40px;
      height: 40px;
      border: 4px solid var(--primary-light);
      border-top: 4px solid var(--primary);
      border-radius: 50%;
      animation: spin 1s linear infinite;
  }

  @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
  }

  @media (max-width: 768px) {
      /* .chart-fund-info {
          flex-direction: column;
          align-items: flex-start;
      } */

      /* .fund-value {
          margin-top: 12px;
          text-align: left;
      } */

      .chart-container {
          height: 350px;
          padding: 20px 15px;
      }

      .chart-data-summary {
          grid-template-columns: repeat(2, 1fr);
      }
  }

/*
  走势曲线样式结束
*/

            /*
  基金持仓样式
*/
          :root {
              --bg-white: #ffffff;
              --bg-gray: #f5f7fa;
              --text-primary: #1d2129;
              --text-secondary: #4e5969;
              --border: #e5e6eb;
              --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
              --radius: 8px;
          }
  
          /* * {
              margin: 0;
              padding: 0;
              box-sizing: border-box;
              font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
          }
  
          body {
              background-color: var(--bg-gray);
              padding: 20px;
              color: var(--text-primary);
          } */
  
          .fund-asset-container {
              max-width: 900px;
              margin: 0 auto;
              background-color: var(--bg-white);
              border-radius: var(--radius);
              box-shadow: var(--shadow);
              overflow: hidden;
          }
  
          /* .fund-asset-fund-info {
              font-size: 14px;
              color: var(--text-secondary);
          } */
  
          .fund-asset-content {
              display: flex;
              flex-wrap: wrap;
              padding: 24px;
              gap: 30px;
              height: 300px;
          }
  
          .fund-asset-chart-container {
              flex: 1;
              min-width: 300px;
              position: relative;
              height: 400px;
              display: flex;
              justify-content: center;
              align-items: center;
          }
  
          #pieChart {
              width: 100%;
              height: 100%;
              max-width: 400px;
              max-height: 400px;
          }
  
          .fund-asset-legend-container {
              flex: 1;
              min-width: 250px;
              display: flex;
              flex-direction: column;
              justify-content: center;
          }
  
          .fund-asset-legend-item {
              display: flex;
              align-items: center;
              padding: 10px 0;
              border-bottom: 1px dashed var(--border);
              transition: all 0.2s ease;
              cursor: pointer;
          }
  
          .fund-asset-legend-item:last-child {
              border-bottom: none;
          }
  
          .fund-asset-legend-item:hover {
              background-color: rgba(22, 93, 255, 0.05);
              padding-left: 5px;
          }
  
          .fund-asset-color-marker {
              width: 16px;
              height: 16px;
              border-radius: 4px;
              margin-right: 12px;
          }
  
          .fund-asset-asset-name {
              flex: 1;
              font-size: 15px;
          }
  
          .fund-asset-asset-value {
              font-weight: 500;
              font-family: 'Consolas', monospace;
          }
  
          .fund-asset-tooltip {
              position: absolute;
              background-color: rgba(15, 23, 42, 0.95);
              color: white;
              padding: 12px 16px;
              border-radius: 6px;
              font-size: 14px;
              pointer-events: none;
              opacity: 0;
              transition: opacity 0.2s ease;
              z-index: 10;
              min-width: 150px;
          }
  
          .fund-asset-tooltip-title {
              font-weight: 600;
              margin-bottom: 6px;
              padding-bottom: 6px;
              border-bottom: 1px solid rgba(255, 255, 255, 0.1);
          }
  
          .fund-asset-loading {
              position: absolute;
              top: 0;
              left: 0;
              width: 100%;
              height: 100%;
              background-color: rgba(255, 255, 255, 0.8);
              display: flex;
              justify-content: center;
              align-items: center;
              z-index: 5;
          }
  
          .fund-asset-spinner {
              width: 40px;
              height: 40px;
              border: 4px solid rgba(22, 93, 255, 0.1);
              border-top: 4px solid #165DFF;
              border-radius: 50%;
              animation: spin 1s linear infinite;
          }
  
          .fund-asset-error-message {
              color: #F53F3F;
              text-align: center;
              padding: 40px 20px;
          }
  
          @keyframes spin {
              0% { transform: rotate(0deg); }
              100% { transform: rotate(360deg); }
          }
  
          @media (max-width: 768px) {
              .fund-asset-content {
                  padding: 16px;
                  gap: 20px;
                  height: 300px;
              }
  
              .fund-asset-chart-container{
                  height: 300px;
              }
  
              .fund-asset-legend-item {
                  padding: 8px 0;
              }
          }
 