/* 关于界面的故事介绍 */
.bubble-wrapper {
    display: flex;
    flex-wrap: wrap;           /* 自动换行 */
    justify-content: center;   /* 居中排列 */
    gap: 1em;
    max-width: 100%;
    padding: 0.5em 0;
    box-sizing: border-box;
    overflow-x: visible;       /* 取消横向滚动 */
  }
  
  .bubble-container {
    flex: 0 0 auto;
    width: 320px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
  }
  
  .bubble-toggle {
    background: linear-gradient(to right, #74b9ff, #a29bfe);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    user-select: none;
    white-space: nowrap;
    text-align: center;
    transition: background 0.3s;
    z-index: 10;
  }
  
  .bubble-toggle:hover {
    background: linear-gradient(to right, #81ecec, #74b9ff);
    /* transform: scale(1.05);  已去除气泡放大 */
  }
  
  .bubble-content {
    margin-top: 8px;
    padding: 16px 20px;
    background: #f0f8ff;
    border-left: 5px solid #74b9ff;
    border-radius: 10px;
    max-height: 12em;              /* 默认显示几行，改这里调整 */
    line-height: 1.6em;
    overflow: hidden;
    color: #333;
    position: relative;
    transition: max-height 0.5s ease;
    cursor: default;
  }
  
  /* 渐隐遮罩层 */
  .bubble-content::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2.5em; /* 遮罩高度，可调整 */
    background: linear-gradient(to bottom, rgba(240, 248, 255, 0), #f0f8ff);
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  
  /* 展开时移除渐隐遮罩 */
  .bubble-container.open .bubble-content {
    max-height: 1000px;
  }
  
  .bubble-container.open .bubble-content::after {
    opacity: 0;
    display: none;
  }
  
  .bubble-toggle::after {
    content: '（点击展开）';
    font-weight: normal;
    font-size: 0.85em;
    color: #bbe1ff;
    margin-left: 8px;
    opacity: 0.7;
  }
  
  .bubble-container.open .bubble-toggle::after {
    content: '（点击收起）';
    color: #55a1ff;
  }
  
  /* 手机端样式：气泡一行一个，竖直排列 */
  @media (max-width: 640px) {
    .bubble-wrapper {
      flex-direction: column !important;
      flex-wrap: nowrap !important;
      justify-content: flex-start !important;
    }
    .bubble-container {
      width: 100% !important;
      margin-bottom: 1em;
    }
  }
  
/* 下面是时间线功能 */
.timeline-loading {
    font-size: 14px;
    color: #666;
    padding: 10px;
    text-align: center;
  }
  
.timeline-wrapper {
    max-width: 800px;
    margin: 1.5rem auto;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    position: relative;
    font-family: "Segoe UI", "Noto Sans SC", sans-serif;
    background: transparent;
  }
  
  .timeline-wrapper::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #90caf9; /* 时间线竖线浅蓝 */
  }
  
  .timeline-date-block {
    margin-left: 40px;
    margin-bottom: 1rem; /* 紧凑一点 */
    position: relative;
  }
  
  .timeline-date-block::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 8px; /* 垂直居中单行 */
    width: 12px;
    height: 12px;
    background: #42a5f5; /* 时间点蓝 */
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #90caf9;
  }
  
  .timeline-date {
    font-size: 1rem;
    font-weight: 600;
    color: #1565c0; /* 日期深蓝 */
    margin-bottom: 0.3rem;
  }
  
  .timeline-item {
    background: #f9fbff;
    border-left: 3px solid #bbdefb;
    border-radius: 6px;
    padding: 0.3rem 1rem;
    margin: 0.2rem 0;
    position: relative;
    padding-left: 2.5rem; /* 给序号留空间 */
    counter-increment: line;
  
    /* 单行显示，自动截断省略 */
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-size: 0.95rem;
    line-height: 1.3rem;
    cursor: default;
  }
  
  .timeline-item:hover {
    background: #e3f2fd;
  }
  
  .timeline-item::before {
    content: counter(line) ".";
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: #61996c; /* 编号深蓝，与时间点颜色区分 */
    font-weight: 700;
    font-size: 1rem;
    user-select: none;
  }
  
  .timeline-hidden-tip {
    color: #cc1c1c;
    font-style: italic;
    text-align: center;
    margin: 2rem 1rem;
    padding: 1rem 1.5rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #f9f9f9;
    box-shadow: 0 0 6px rgba(0,0,0,0.05);
    user-select: none;
    font-size: 1rem;
    /* 你也可以加字体等 */
    font-family: "Segoe UI", "Noto Sans SC", sans-serif;
  }
  
/* 这是小点的蓝色按钮的点击ui */
  /* 按钮容器 */
  .timeline-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px auto 16px auto;
    justify-content: center;
  }
  /* 按钮样式 */
  .timeline-btns button {
    padding: 6px 18px;
    border: none;
    background: #8c9dc0;
    color: #fff;
    font-weight: 600;
    border-radius: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    user-select: none;
  }
  .timeline-btns button.active,
  .timeline-btns button:hover {
    background: #1D4ED8;
  }

/* 顶部大文章头显示 */
  .page-header {
    text-align: center;
    margin: 40px 0 60px;
  }
  .page-header h1 {
    font-size: 3rem;
    color: #0088cc;
    text-shadow: 1px 1px 3px rgba(0, 136, 204, 0.4);
    margin-bottom: 10px;
  }
  .page-header p {
    font-size: 1.2rem;
    color: #555;
    letter-spacing: 1px;
  }

/* 关于界面的蓝色大气泡 */
  .center-bubble {
    max-width: 800px;       /* 宽度调大 */
    margin: 40px auto;
    padding: 32px 40px;     /* 内边距加大 */
    background: linear-gradient(135deg, #a0d8ef 0%, #70b8d4 100%);
    border-radius: 40px;
    box-shadow: 0 12px 25px rgba(112, 184, 212, 0.5);
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 20px;        /* 字号稍微调大 */
    line-height: 1.6;
    text-align: center;
    user-select: none;
    position: relative;
  }

  .center-bubble::before {
    content: "";
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    border: 20px solid transparent;
    border-top-color: #70b8d4;
    filter: drop-shadow(0 3px 3px rgba(0,0,0,0.1));
  }

  .center-bubble strong {
    display: block;
    font-size: 28px;        /* 标题放大 */
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.25);
  }


/* 关于界面的QQ群之类的大气泡显示 */
  .info-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto 40px auto;
    padding: 0 10px;
  }

  .info-card {
    flex: 1 1 320px;
    max-width: 360px;
    background: linear-gradient(135deg, #dbeafe 0%, #c4b5fd 100%);
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(102, 78, 204, 0.25);
    color: #3b3054;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.4;
    padding: 16px 20px;
    box-sizing: border-box;
    transition: box-shadow 0.3s ease;
  }
  .info-card:hover {
    box-shadow: 0 10px 30px rgba(102, 78, 204, 0.4);
  }
  .info-card h2 {
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 12px;
    border-bottom: 2px solid #a78bfa;
    padding-bottom: 6px;
    color: #5c4d7d;
  }
  .info-section {
    margin-bottom: 14px;
  }
  .info-section:last-child {
    margin-bottom: 0;
  }
  .info-section strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: #7c6fc0;
  }
  .info-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
  }
  .info-list li {
    margin-bottom: 4px;
    font-size: 0.95rem;
  }
  .info-list code {
    background: #ede9fe;
    color: #6b46c1;
    padding: 0 4px;
    border-radius: 3px;
    font-family: monospace;
  }

  /* 手机端一列 */
  @media (max-width: 640px) {
    .info-wrapper {
      flex-direction: column;
      max-width: 100%;
      padding: 0 10px;
    }
    .info-card {
      max-width: 100%;
      width: 100%;
    }
  }


/* 小提示气泡整合包界面的 */
/* 统一调整这部分图片样式 */
.simple-bubble + img {
    display: block;
    max-width: 480px; /* 最大宽度，适当缩小 */
    width: 100%;      /* 响应式宽度，保持比例缩放 */
    height: auto;
    margin: 12px auto 24px auto; /* 上12px，下24px，左右居中 */
    border-radius: 8px; /* 圆角，视觉更柔和 */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* 轻微阴影，层次感 */
  }
    .tag {
      display: inline-block;
      background-color: #f3f4f6;
      color: #1f2937;
      border-radius: 12px;
      padding: 2px 8px;
      font-size: 11px;
      margin-left: 2px;
    }
    .tag-green {
      background-color: #d1fae5;
      color: #065f46;
    }
    .tag-pink {
      background-color: #fce7f3;
      color: #9d174d;
    }
    .tag-blue {
      background-color: #dbeafe;
      color: #1e40af;
    }

/* 隐藏所有非toc的卡片显示 */
#aside-content {
    /* 隐藏所有卡片 */
    .card-widget {
      display: none !important;
    }
    
    /* 只显示目录卡片 */
    #card-toc {
      display: block !important;
    }
  }

/* 下载按钮优化显示气泡 */
.download-link {
    display: inline-block;
    background: linear-gradient(to right, #2e2a2d, #30302e); /* 渐变蓝 */
    color: white;
    padding: 6px 16px;
    border-radius: 999px; /* 更圆润的按钮 */
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  }
  .download-link:hover {
    transform: scale(1.05);
    background: linear-gradient(to right, #050505, #161616); /* 深一点的渐变 */
  }