/* 优化新闻网格布局 */
.fed-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* 自动适应列宽 */
    gap: 15px; /* 项目间距 */
    justify-content: space-between; /* 左右对齐 */
}

.fed-news-item {
    margin-bottom: 0;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
    background-color: #fff; /* 确保每个项目有背景色 */
    border: 1px solid #eee; /* 添加轻微边框 */
}

.fed-news-item:hover {
    background-color: #f8f9fa;
}

.fed-news-title {
    margin-bottom: 5px;
    /*white-space: nowrap;*/
    overflow: hidden;
    text-overflow: ellipsis;
}

.fed-news-time {
    color: #888;
    font-size: 12px;
}
.news-link {
    display: flex; /* 使用flex布局 */
    align-items: center; /* 垂直居中对齐 */
    text-decoration: none; /* 移除下划线 */
    color: inherit; /* 继承文本颜色 */
}

/* 图片样式 */
.news-img {
    width: 80px; /* 固定宽度 */
    height: 80px; /* 固定高度 */
    object-fit: cover; /* 保持比例，裁剪多余部分 */
    border-radius: 4px; /* 圆角 */
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); /* 轻微阴影 */
}

/* 新闻标题文本样式 */
.news-title-text {
    display: inline-block; /* 确保文本可以设置宽度 */
    max-width: calc(100% - 92px); /* 留出图片和间距的空间 */
}

/* 响应式调整 */
@media (max-width: 768px) {
    .news-img {
        width: 60px;
        height: 60px;
        margin-right: 3px;
    }
    
    .news-title-text {
        max-width: calc(100% - 68px);
    }
}
/* 移动端优化 */
@media (max-width: 768px) {
    .fed-news-grid {
        grid-template-columns: 1fr; /* 小屏幕单列显示 */
    }
}

/* 中等屏幕优化 */
@media (min-width: 769px) and (max-width: 1024px) {
    .fed-news-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); /* 中等屏幕调整列宽 */
    }
}



    /* 关键问题标题样式 */
    .question-section {
        margin-bottom: 15px;
    }
    .key-questions-title {
        display: flex;
        align-items: center;
        margin: 1.5rem 0 1rem;
        padding: 0.8rem 1.0rem;
        background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
        color: white;
        border-radius: 0.5rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        position: relative;
        overflow: hidden;
    }
    
    /* 标题图标 */
    .key-questions-icon {
        /*margin-right: 0.75rem;*/
        width: 24px;
        height: 24px;
        background-color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #3498db;
        font-weight: bold;
        transform: rotate(-10deg);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
    
    .key-questions-title:hover .key-questions-icon {
        transform: rotate(10deg);
    }
    
    /* 标题装饰效果 */
    .key-questions-title::after {
        content: "";
        position: absolute;
        top: 0;
        right: -50px;
        width: 100px;
        height: 100%;
        background: rgba(255, 255, 255, 0.2);
        transform: skewX(-20deg);
        animation: shine 4s infinite;
    }
    
    @keyframes shine {
        0% { right: -100px; }
        20% { right: 100%; }
        100% { right: 100%; }
    }
    
    .question-section b {
        display: flex;
        align-items: center;
        cursor: pointer;
        background-color: #f8f9fa;
        padding: 10px;
        border-radius: 5px;
        position: relative;
    }
    
    .question-section b:hover {
        background-color: #e9ecef;
    }
    
    .question-section p {
        margin: 0 0 0 1rem;
        padding: 0 0 0 1rem;
        border-left: 2px solid #e90909;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
    }
    
    .question-section .answer-expanded {
        max-height: 1000px;
        padding-top: 10px;
        padding-bottom: 10px;
        opacity: 1;
    }
    
    .question-section .toggle-btn {
        margin-left: 0.5rem;
        color: #3498db;
        width: 16px;
        height: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .question-section .toggle-btn::after {
        content: "";
        width: 8px;
        height: 8px;
        border: solid #3498db;
        border-width: 0 2px 2px 0;
        display: inline-block;
        transform: rotate(45deg);
    }
    
    .question-section .toggle-rotate::after {
        transform: rotate(225deg);
    }
    
    .question-section b:hover .toggle-btn {
        color: #2980b9;
        transform: scale(1.2);
    }
    
    .question-section b:hover .toggle-btn::after {
        border-color: #2980b9;
    }
    
/* 关键问题*/

/* JS目查找内容容器录生成和滚动的代码CSS分离*/
.toc-container {
    background-color: var(--toc-bg-color, #d5e6eb);
    border-radius: 4px;
    padding: 12px 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 15px;
    display: block;
    clear: both;
    position: relative;
    top: var(--toc-visual-offset, -20px);
}

/* 目录标题样式 */
.toc-title {
    font-size: 16px;
    font-weight: bold;
    /*margin-bottom: 8px;*/
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* 折叠图标样式 */
.toc-toggle-icon {
    margin-left: 8px;
    transition: transform 0.3s;
    font-size: 14px;
    display: none; /* 默认隐藏，仅在移动端显示 */
}

/* 折叠状态下的图标旋转 */
.toc-container.collapsed .toc-toggle-icon {
    transform: rotate(-90deg);
}

/* 目录列表样式 */
.toc-list {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
}

/* 移动端折叠状态 */
@media (max-width: 768px) {
    .toc-list {
        flex-direction: column;
        margin-top: 10px;
        max-height: 1000px; /* 移动端默认展开 */
        opacity: 1;
    }
    
    .toc-container.collapsed .toc-list {
        max-height: 0;
        opacity: 0;
        margin-top: 0;
    }
    
    .toc-toggle-icon {
        display: inline-block; /* 移动端显示折叠图标 */
    }
}

/* 目录项样式 */
.toc-item {
    vertical-align: top;
}

/* 目录链接样式 */
.toc-link {
    color: var(--toc-link-color, #3498db);
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s, font-weight 0.2s;
}


/* 交互状态样式 */
.toc-link:hover {
    color: #2980b9;
    font-weight: 500;
}

.toc-link:active {
    position: relative;
    top: 1px;
}

/* 移动端样式 */
@media (max-width: 768px) {
    .toc-container {
        padding: var(--toc-mobile-padding, 15px);
    }
    
    .toc-link {
        max-width: 100%;
        white-space: normal;
        padding: 8px 0;
        display: block;
        font-size: 16px;
    }
    
    .toc-title {
        font-size: 17px;
    }
}

/* 新增：PC端隐藏目录的样式 */
.toc-container.pc-hidden {
    display: none;
}
/* JS目录查找内容容器生成和滚动的代码CSS分离*/

/* 表格整体样式 */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 15px 0;
}

/* 单元格边框与内边距 */
table td, table th {
  border: 1px solid #e0e0e0;
  padding: 12px 15px;
}

/* 表头样式 */
table th {
  background-color: #f5f5f5;
  font-weight: 600;
  text-align: left;
  letter-spacing: 0.5px;
}

/* 行分隔线与悬停效果 */
table tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s;
}

table tr:hover {
  background-color: #f9f9f9;
}

/* 隔行变色 */
table tr:nth-child(even) {
  background-color: #f8f8f8;
}

table tr:nth-child(odd) {
  background-color: #fff;
}

/* 首行强化 */
table tr:first-child {
  border-top: 2px solid #d0d0d0;
}

/* 关键事件列（第3列）换行优化 */
table td:nth-child(3) {
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.5;
  max-width: 280px;
  vertical-align: top;
}

/* 演员名字体高亮 */
table td span[style*="color:#3498db"] {
  color: #3498db;
  font-weight: 500;
}

/* "饰演"文字样式 */
table td span[style*="color:red"] {
  color: #e74c3c;
  margin: 0 3px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    /* 表格整体样式调整 */
    table {
        font-size: 14px; /* 调整表格字体大小 */
        border-collapse: collapse;
        width: 100%;
        display: block;
        overflow-x: auto; /* 出现横向滚动条，避免内容挤压 */
        white-space: nowrap;
    }
table td, table th {
  border: 1px solid #e0e0e0;
  padding: 12px 4px;
}

td:nth-child(2) {
        color:#3498db; /* 深灰文字 */
        font-weight: 600; /* 加粗字体 */
    }
    /* 表头和单元格内边距调整 */
    th,
    td {
        padding: 4px; /* 减小内边距，紧凑布局 */
        border: 1px solid #ddd;
        text-align: left;
        vertical-align: top;
        word-wrap: break-word; /* 让长文本自动换行 */
        white-space: normal;
    }

    /* 调整特定表头（演员（角色）列，对应 th[width="15%"] ）宽度，覆盖原有 inline 样式 */
    th[width="15%"] {
        width: 25% !important; /* 自定义宽度，根据需求调整，!important 确保覆盖原宽度 */
    }

    /* 表头优化，提升辨识度 */
    th {
        background-color: #f5f5f5;
        font-weight: 600;
    }

    /* 关键事件列等单元格，可根据实际列数和需求调整最小宽度等，避免挤压 */
    td:nth-child(3) {
        min-width: 120px; /* 关键事件列最小宽度，可按需改 */
    }
}
/* 表格整体样式 */

a:hover {
	color: #0bbe06;
}

.fed-head-info .fed-pops-navbar .fed-this a,
.fed-text-green {
	color: #0bbe06!important;
}

.fed-head-info .fed-pops-navbar .fed-this a:before,
.fed-swip-this,
.fed-back-green {
	background-color: #0bbe06!important;
}

.fed-head-info .fed-pops-user a:hover {
	background-color: #5fb878;
}

.fed-list-info .fed-list-score:before {
	border-top: 0.25rem solid #0bbe06;
}

.fed-rims-reds,
.fed-head-info .fed-navs-search .fed-navs-input:hover,
.fed-head-info .fed-navs-search .fed-navs-input:focus {
	border-color: #0bbe06!important;
}

.fed-page-info a:hover,
.fed-page-info span,
.fed-btns-green,
.fed-btns-info:hover {
	background-color: #0bbe06!important;
	border-color: #0bbe06!important;
}
.gm-info-tip{
display: block;
    padding: 0 3px;
    background: #f6f4f4;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 5px auto;
    width: fit-content;
}
.gm-info-tip b::before {
        content: "▶";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        color: #ff4757;
        font-size: 12px;
        animation: bounce 1.2s infinite;
    }
    /* 品牌强调 */
    .gm-info-tip b {
        color: #2a6df5;
        font-weight: 600;
        position: relative;
        padding-left: 20px;
    }
/* 气泡箭头 */
    .gm-info-tip::before {
        content: "";
        position: absolute;
        top: -6px;
        right: 20px;
        width: 12px;
        height: 12px;
        background: inherit;
        transform: rotate(45deg);
        border: inherit;
        border-bottom: none;
        border-right: none;
    }
    /* 动画定义 */
    @keyframes bounce {
        0%, 100% { transform: translateY(-50%) translateX(0); }
        50% { transform: translateY(-50%) translateX(3px); }
    }
 /* 显示状态 */
    .gm-info-tip.active {
        transform: translateY(0);
        opacity: 1;
        display: block;
    }
 /* 内容页生成内联 */
.special-link {
      color: #4528d0;
      text-decoration: none;
      border-radius: 4px;
      transition: all 0.3s;
    }
    .special-link:hover {
      background-color: #f5f3ff;
      color: #635bff;
    }
 /* 人物关系图谱隐藏状态 */
.relation-graph {
  display: none;   }