html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    background-color: #f5f5f5;
}
#app {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;           
    flex-direction: column;  
    width: 100%;
    height: 100%;
    margin: 0px;
}

#top_div{
    width: 100%;
    height: 100px;
    margin-bottom: 10px;
    flex-shrink: 0;
    background-color: #ffffff;

}
#bottom_div {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    background-color: #f5f5f5;
    gap: 10px; /* 设置子元素之间的间距 */
}
#navigation_bar {
    width: 200px; 
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    position: relative;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    overflow: hidden;  /* 防止内容溢出 */
}

#navigation_bar.collapsed {
    width: 35px;  /* 折叠时只显示触发器 */
}


/* 导航项区域*/
#navigation_item {
    display: flex;
    flex-direction: column;
    flex:1;
    align-items: center;  
    justify-content: flex-start;
    overflow: auto;  
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);  /* 统一缓动函数 */
    padding: 10px 0;
    background-color: #ffffff;
}
/* 折叠状态 - */
#navigation_item.collapsed {
    width: 0;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
}
/* 折叠触发器 */
#navigation_collapse_trigger {
  width: 35px;
  height: 100%;
  flex-shrink: 0;
  background-color: #95a5b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s ease;
  position: relative;
  border: none;
  color: white;
}

/* 箭头样式 - 使用伪元素 */
#navigation_collapse_trigger::before {
  content: "‹‹";
  font-size: 20px;
  font-weight: bold;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  line-height: 1;
}
/* 展开状态（默认）- 箭头指向左 */
#navigation_collapse_trigger::before {
  transform: rotate(0deg);
}
/* 折叠状态 - 箭头旋转 180 度指向右 */
#navigation_collapse_trigger.collapsed::before {
  transform: rotate(180deg);
}
/* 悬停效果 */
#navigation_collapse_trigger:hover {
  background-color: #8294a8;
  box-shadow: 0 2px 8px rgba(126, 200, 168, 0.4);
}
/* 点击效果 */
#navigation_collapse_trigger:active {
  background-color: #6f8196;
}



/* 卡片显示区域--鼠标悬浮时卡片放大 */
#card_area {
    flex: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 100px;
    justify-content: flex-start;  /* 从左向右排列 */
    background-color:#ffffff;
}
.hover-card {
  width: 350px;
  height: 150px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  
  /* 新增：flex 布局属性 */
  display: flex;
  flex-direction: row;
}

.hover-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.hover-card .card-image {
  width: 150px;
  height: 150px;
  object-fit: cover;
  flex-shrink: 0;
}

.hover-card .card-content {
  flex: 1;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.custom-tooltip {
  max-width: 250px !important; /* 关键：限制宽度 */
  padding: 8px 12px !important;
  word-wrap: break-word;       /* 允许单词内换行 */
  white-space: normal !important; /* 允许正常换行 */
  line-height: 1.5;
}
.custom-tooltip .tooltip-inner {
  white-space: normal;
  word-wrap: break-word;
  display: block;
}
.hover-card .description-text {
  font-size: 12px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #90a1c4;
}
.hover-card .bottom {
  margin-top: auto;
  text-align: right;
  margin: 5px;
}
.hover-card .link-text {
  font-size: 14px;
}


/* 悬浮按钮容器（基础定位 + 拖拽支持）*/
.navigation-collapse-btn {
    /* 定位与层级 - 悬浮拖拽必需 */
    position: fixed;
    top: 50%;
    right: 20px;
    z-index: 9999;
    
    /* 尺寸与布局 */
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* 视觉样式 - 保留紫色渐变 */
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
    
    /* 交互样式 - 拖拽必需 */
    cursor: grab;
    user-select: none;
    
    /* 过渡动画 - 分开处理不同属性 */
    transition: 
        transform 0.1s ease,           /* 拖动时的快速响应 */
        background 0.3s ease,          /* 渐变切换 */
        box-shadow 0.3s ease;          /* 阴影变化 */
}
/* 鼠标按下时（拖动反馈）*/
.navigation-collapse-btn:active {
    cursor: grabbing;
    transform: scale(0.95);  /* 轻微缩小，提供按压反馈 */
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.5);
}
/* 悬停效果（保留渐变反转 + 轻微放大）*/
.navigation-collapse-btn:hover {
    transform: scale(1.05);  /* 悬停时轻微放大，避免与:active冲突 */
    background: linear-gradient(135deg, #764ba2, #667eea);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.5);
}
/* 悬停时中间线条微动画（可选装饰效果）*/
.navigation-collapse-btn:hover .line:nth-child(2) {
    width: 20px;  /* 与原始24px协调，轻微收缩 */
}
.navigation-collapse-btn .line-box {
    width: 20px;
    height: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;  /* 保持原始间距逻辑 */
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.navigation-collapse-btn .line {
    width: 100%;
    height: 2px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
/* 首尾线条缩短效果 */
.navigation-collapse-btn .line:first-child,
.navigation-collapse-btn .line:last-child {
    width: 50%;
}
.navigation-collapse-btn .line:first-child {
    transform-origin: right;
}
.navigation-collapse-btn .line:last-child {
    align-self: flex-end;
    transform-origin: left;
}
.navigation-collapse-btn.active .line-box {
    transform: rotate(-45deg);
}
.navigation-collapse-btn.active .line:first-child {
    transform: rotate(-90deg) translateX(1.5px);
    width: 100%;
}
.navigation-collapse-btn.active .line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}
.navigation-collapse-btn.active .line:last-child {
    transform: rotate(-90deg) translateX(-1.5px);
    width: 100%;
}
/* 拖动过程中临时禁用 hover/active 的 transform，避免冲突 */
.navigation-collapse-btn.dragging {
    transition: none !important;
    cursor: grabbing !important;
}
.navigation-collapse-btn.dragging:hover,
.navigation-collapse-btn.dragging:active {
    transform: none !important;
}


