/* =========================================
   chart-tag.css (仅修改文本框颜色版)
   ========================================= */

   #tag-chart-dashboard { 
    margin-top: 0; position: relative; z-index: 20; 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
  }
  #tag-chart-dashboard .scrolly-story-container { width: 25%; padding-bottom: 5vh; }
  
  #tag-chart-section .grand-section-title {
    background-image: linear-gradient(135deg, #2ecc71 0%, #f1c40f 80%, #fff 100%);
  }
  
  #tag-chart-wrapper.sticky-stage {
    background: #ffffff !important; 
    background-color: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    
    border: 1px solid #ccc !important;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1) !important;
    
    height: 20vh; min-height: 600px; width: 75%;
    top: 15vh;
    
    color: #333333; 
  }
  
  #tag-chart-wrapper .parallel-chart-title {
    color: #333333 !important;
    text-shadow: none !important;
  }
  
  #tag-viz-container { height: 800px; width: 100%; }
  .parallel-chart-shared-viz-svg { width: 100%; height: 100%; display: block; }
  
  .parallel-chart-tag-detail-panel { 
    z-index: 30; pointer-events: none; transition: opacity 0.5s ease; 
  }
  .parallel-chart-tag-detail-panel.active { pointer-events: auto; }
  
  /* --- 核心修改：仅针对 story-card 的颜色适配 --- */
  #tag-chart-dashboard .story-card {
    /* 背景设为白色 */
    background: #ffffff !important; 
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    
    /* 边框与阴影适配 */
    border: 1px solid #e2e8f0 !important;
    border-left: 4px solid var(--accent-color) !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08) !important;
    
    padding: 24px;
    border-radius: 6px; 
    height: fit-content; 
    box-sizing: border-box; 
    position: relative;
  }
  
  /* 文字颜色统一为深色 */
  #tag-chart-dashboard .story-card h3 {
    color: #1a1a1a !important;
    margin: 0 0 10px 0;
  }
  
  #tag-chart-dashboard .story-card p {
    color: #4a5568 !important;
    line-height: 1.6;
  }
  
  /* --- 详情面板样式 --- */
  .literary-card {
    background: #ffffff !important; 
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: #333333; 
    
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    
    padding: 24px;
    border-radius: 6px; 
    min-height: auto; 
    height: fit-content; 
    
    box-sizing: border-box; 
    position: relative;
    transition: all 0.4s ease;
  }
  
  .card-decoration-svg { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    pointer-events: none; z-index: 0; overflow: visible; 
    border-radius: 2px 8px 8px 2px;
  }
  
  .detail-tag-pill { display: inline-block; margin-right: 4px; margin-bottom: 4px; }
  #tag-chart-dashboard .story-step { min-height: 100vh; margin-bottom: 20vh; }