/*
 * 文件: category-expander.css
 * 描述: 分类描述展开器样式 (最终布局修正版)
 */

/* 1. 最外层的容器，负责整体的上下边距 */
.auras-expander-section {
    margin-top: 2.5em;    /* 与上方内容的间距 */
    margin-bottom: 2.5em; /* 与下方内容的间距 */
    clear: both;
    width: 100%;
}
/* 新增：标题样式 */
.expander-title {
    font-size: 2em; /* 字体大小，可根据你的主题调整 */
    text-align: center; /* 居中显示 */
    margin-bottom: 0.8em; /* 与下方描述内容的间距 */
    font-weight: 600; /* 字体粗细 */
}

/* 2. 内容折叠容器 */
.expandable-description-container {
    position: relative;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}
.expandable-description-container p:last-child {
    margin-bottom: 0;
}

/* 3. 折叠状态 */
.expandable-description-container.is-collapsed {
    max-height: 105px; 
}

/* 4. 渐变遮罩 */
.expandable-description-container.is-collapsed .description-fade-overlay {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to bottom, transparent, var(--content-bg, #FFFFFF) 95%);
    pointer-events: none;
    z-index: 2;
}
.expandable-description-container:not(.is-collapsed) .description-fade-overlay {
    display: none;
}
/* --- 内链样式 for 分类描述 --- */

/* 默认状态：深灰色文字 + 虚线底边框 */
.expandable-description-container a[data-term-interlink="true"] {
  color: #555; /* 使用深灰色，区别于纯黑正文和蓝色链接 */
  text-decoration: none; /* 移除默认的下划线 */
  border-bottom: 1px dashed #999; /* 使用更柔和的灰色虚线作为标识 */
  font-weight: normal; /* 确保字体不加粗 */
  transition: all 0.2s ease-in-out; /* 为悬停效果增加平滑过渡动画 */
}

/* 鼠标悬停状态：变为和推荐链接一样的蓝色 */
.expandable-description-container a[data-term-interlink="true"]:hover {
  color: #0056b3; /* 悬停时变为和您推荐链接一样的蓝色 */
  border-bottom-color: #0056b3; /* 底边框也变为蓝色 */
  border-bottom-style: solid; /* 边框变为实线，提供更强的点击反馈 */
}

/* 5. 按钮的包裹容器 */
.expander-button-wrapper {
    text-align: center;
    padding-top: 20px;
}

/* 6. 按钮本身样式 */
.expandable-toggle-button {
    display: inline-block;
    padding: 10px 30px; /* 按钮更大一些，更好看 */
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background-color: #ffffff;
    color: #333;
    font-size: 14px;
    font-weight: 600; /* 稍微加粗 */
    line-height: 1.5;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.expandable-toggle-button:hover {
    background-color: #f7f7f7;
    border-color: #c0c0c0;
    color: #000;
}
