/* ========================================

   期刊界面
   
   ======================================== */
/* 设置侧面导航的一级标题大小及边距 */
#navigationPrimary a.font-display.font-medium.text-slate-900 {
    font-size: 18px !important;
    line-height: 18px !important;
}

/* 设置页面内导航的下边距 */
nav.text-slate-500 {
    font-size: 14px !important;
    margin-bottom: 12px !important;
    display: block !important;
}

/* 修改页脚背景颜色 */
footer.footer {
    background-color: #495d91 !important;
}

/* 修改登录注册按钮颜色 */
.bg-slate-800 {
    background-color: #3658b2 !important;

}

/* 修复搜索按钮的宽度和布局，使其自适应文字长度 */
.pkp_navigation_search_wrapper a {
    width: auto !important;         /* 取消原有的固定宽度 w-8 */
    min-width: 80px !important;     /* 设置最小宽度，防止太窄 */
    padding-left: 12px !important;  /* 增加内部左边距 */
    padding-right: 12px !important; /* 增加内部右边距 */
    display: flex !important;       /* 确保 flex 布局正常 */
    align-items: center !important; /* 垂直居中 */
    justify-content: center !important; /* 水平居中 */
}

/* 调整搜索文字的间距 */
.pkp_navigation_search_wrapper a span.text-sm {
    margin-left: 8px !important;    /* 增加文字与图标的间距 */
    white-space: nowrap !important; /* 防止文字折行 */
    color: #64748b !important;
    font-weight: 400 !important;
}

/* 平常状态：夜晚模式 (文字颜色) */
.dark .pkp_navigation_search_wrapper a span.text-sm {
    color: #94a3b8 !important;
}

.pkp_navigation_search_wrapper a:hover span.text-sm {
    color: #64748b !important; 
}

/* 悬停状态：夜晚模式改变文字颜色 */
.dark .pkp_navigation_search_wrapper a:hover span.text-sm {
    color: #e5e7eb !important;
}

/* 解决添加homepage image后期刊简介不省略的问题 */
.mt-3.text-2xl.text-slate-200 {
    display: -webkit-box !important;      /* 必须配合 -webkit-box */
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 4 !important;     /* 限制显示 5 行 */
    overflow: hidden !important;          /* 隐藏超出部分 */
    text-overflow: ellipsis !important;   /* 显示省略号 */
}

/* 解决首页背景图透明度问题 */
img[src*="homepageImage_en.jpg"] {
    opacity: 1 !important;
}

/* 背景图片容器 - 保持比例并自适应  */
.relative.overflow-hidden.bg-slate-900 {
    min-height: 60vh;  /* 至少占60%视口高度，手机上也够 */
    height: auto;      /* 让内容撑开高度 */
}

/* 背景图片 - 完整覆盖且不变形 */
.relative.overflow-hidden.bg-slate-900 img.absolute {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;  /* 覆盖且保持比例，裁剪多余部分 */
}

/* ========================================

   站点首页界面
   
   ======================================== */
   
/* 更改站点首页的"Journals"标题字体样式 */
.page_index_site .journals h2 {
    font-size: 40px !important;
    font-weight: bold !important;
    color: #3658b2 !important;
    text-align: center !important;
    font-family: 'Times New Roman', Times, serif !important;
}

/* 修改站点首页期刊下方的 "View Journal" 和 "Current Issue" 按钮样式 */
/* 移除去掉列表项的小点 */
.page_index_site .journals .links {
    list-style: none !important;
    padding-left: 0 !important;
    display: flex !important;          /* 让列表项横向排列 */
    gap: 0.5rem !important;            /* 两个按钮之间的间距，可根据需要调整 */
    flex-wrap: wrap !important;        /* 如果一行放不下，自动换行 */
}

.page_index_site .journals .links li {
    list-style: none !important;        /* 确保每个列表项也没有小点 */
    display: inline-block;              /* 让列表项横向排列 */
}

/* 统一按钮基本样式 */
.page_index_site .journals .links a {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;              /* 胶囊形状 */
    font-size: 0.875rem;                /* 约14px */
    font-weight: 600;                   /* 半粗体 */
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;                /* 防止文字换行 */
}

/* "View Journal" 按钮样式（主要按钮） */
.page_index_site .journals .links .view a {
    background-color: #fdba74;           /* 橙色背景 */
    color: #0f172a;                      /* 深色文字 */
}

.page_index_site .journals .links .view a:hover {
    background-color: #fb923c;           /* 悬停时浅橙色 */
}

/* "Current Issue" 按钮样式（次要按钮） */
.page_index_site .journals .links .current a {
    background-color: #3658b2;           /* 深色背景 */
    color: #ffffff;                      /* 白色文字 */
}

.page_index_site .journals .links .current a:hover {
    background-color: #334155;           /* 悬停时浅深色 */
}

