 /*Technical Support SudyTech*/

/* ============================================================
   武昌首义学院教务处 - 全站基础样式表
   说明：本文件存放非媒体查询类样式（媒体查询样式见 media.css）
   结构：全局基础 -> 导航 -> 轮播 -> 移动端菜单 -> 页面特定样式
   ============================================================ */

/* ---------- 字体 ---------- */
@import url('fonts/noto-sans-sc/noto-sans-sc.css');
@import url('fonts/noto-serif-sc/noto-serif-sc.css');

/* ---------- 全局基础 ---------- */
body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: #FFFFFF;
    color: #333333;
    margin: 0;
}

/* 学术衬线字体（标题装饰用） */
.academic-font {
    font-family: 'Noto Serif SC', serif;
}

/* ---------- 顶部导航 ---------- */

/* 一级导航链接：底部滑入下划线动效 */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* 下拉菜单容器 */
.dropdown {
    position: relative;
}
.px-4 ul .dropdown:first-child iconify-icon{display:none;}
/* 下拉菜单面板 */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: max-content;
    max-width: 220px;
    background: linear-gradient(180deg, #004080 0%, #003366 100%);
    box-shadow: 0 16px 32px rgba(0, 51, 102, 0.4);
    z-index: 100;
    padding: 6px 0;
    margin: 0;
    list-style: none;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 0;
    margin: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    position: relative;
    transition: all 0.25s ease;
}

.dropdown-menu li a:hover {
    color: white;
    background-color: rgba(196, 30, 58, 0.2);
    padding-left: 26px;
}

/* 悬停时出现的红色圆点装饰 */
.dropdown-menu li a::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    width: 5px;
    height: 5px;
    background-color: #C41E3A;
    border-radius: 50%;
    transform: translateY(-50%) scale(0);
    transition: transform 0.25s ease;
}

.dropdown-menu li a:hover::before {
    transform: translateY(-50%) scale(1);
}
.impoico{    min-width: 33px;display:none;}
.impoico img{display:none;}
.impoico:has(img){display:block;}
/* ---------- 首页轮播图 ---------- */
.carousel-item {
    display: none;
    transition: opacity 0.8s ease-in-out;
}

.carousel-item.active {
    display: block;
}
.system-card{padding:2em 1em!important;border-color:rgb(243 244 246 / var(--tw-border-opacity))!important;}
.system-card .mt-1{opacity:0;}
.system-card:nth-child(7),.system-card:nth-child(8){border-color: rgb(209 213 219 / var(--tw-border-opacity))!important;}
.system-card:nth-child(7) .mt-1{opacity:1;}
.system-card:nth-child(8) .mt-1{opacity:1;background-color: rgb(254 249 195 / var(--tw-bg-opacity));color: rgb(161 98 7 / var(--tw-text-opacity));}
/* ---------- 移动端导航菜单（折叠面板，响应式规则见 media.css） ---------- */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.mobile-menu.open {
    max-height: 90vh;
    overflow-y: auto;
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.15);
}

.mobile-submenu.open {
    max-height: 500px;
}

/* ============================================================
   以下为页面特定样式
   ============================================================ */

/* ---------- 首页：常用系统 / 服务专区卡片 ---------- */
.system-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 51, 102, 0.1);
    border-color: #003366!important;
}

.service-card {
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: scale(1.02);
}

/* 文本最多显示 2 行（超出省略） */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- 列表页：信息条目 ---------- */
.notice-item {
    border-bottom: 1px dashed #e5e7eb;
    transition: all 0.2s ease;
}
.notice-item a{
    text-overflow: -o-ellipsis-lastline;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical
}
.notice-item span{min-width: 75px;}
.notice-item:hover {
    background-color: #f9fafb;
    padding-left: 10px;
}

/* ---------- 列表页（政策法规）：文档条目与新旧标记 ---------- */
.doc-item {
    border-bottom: 1px dashed #e5e7eb;
    transition: all 0.2s ease;
    padding-left: 16px;
    gap: 8px;
}
.doc-item a{
    text-overflow: -o-ellipsis-lastline;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical
}
.doc-item>span{min-width: 75px;}
.doc-item:hover {
    background-color: #f9fafb;
    padding-left: 24px;
}

.doc-item > :first-child {
    flex: 1;
    min-width: 0;
}

.doc-item > :last-child {
    flex-shrink: 0;
    white-space: nowrap;
}

.doc-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

/* 新文档：红色圆点 */
.doc-dot-new {
    background-color: #C41E3A;
}

/* 旧文档：灰色圆点 */
.doc-dot-old {
    background-color: #9ca3af;
}

/* ---------- 列表页：分页组件 ---------- */
.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1.5;
}

.pagination a {
    padding: 6px 12px;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: #6b7280;
    border-radius: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-size: 13px;
}

.pagination a:hover {
    background-color: #003366;
    color: white;
    border-color: #003366;
}

.pagination a.active {
    background-color: #003366;
    color: white;
    border-color: #003366;
}

/* ---------- 详情页：文章正文排版 ---------- */
.article-content {
    line-height: 1.8;
    text-align: justify;
    min-height:500px;
}

.article-content p {
    margin-bottom: 1em;
    text-indent: 2em;
}
.article-content p>img{display:inline-block;}
.article-content img {
    max-width: 100%;
    height: auto;
    margin: 1em auto;
    display: block;
}

/* ---------- 岗位职责页：文件下载按钮 ---------- */
.download-btn {
    background: linear-gradient(135deg, #003366 0%, #004080 100%);
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: linear-gradient(135deg, #004080 0%, #005090 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 51, 102, 0.3);
}

/* ============================================================
   模板循环项视觉变体补偿（循环单元统一后按序号恢复差异化样式）
   ============================================================ */

/* 服务专区卡片：按序号恢复四色渐变（后台配置数量超出时循环回退） */
.service-card:nth-child(4n+1) {
    background-image: linear-gradient(to bottom right, #003366, #004080);
}

.service-card:nth-child(4n+2) {
    background-image: linear-gradient(to bottom right, #C41E3A, #E53935);
}

.service-card:nth-child(4n+3) {
    background-image: linear-gradient(to bottom right, #4f46e5, #3b82f6);
}

.service-card:nth-child(4n+4) {
    background-image: linear-gradient(to bottom right, #0d9488, #10b981);
}

/* 常用系统卡片：按序号恢复图标容器底色 */
.system-card:nth-child(1) > div:first-child {
    background-color: #eff6ff;
}

.system-card:nth-child(2) > div:first-child {
    background-color: #f0fdf4;
}

.system-card:nth-child(3) > div:first-child {
    background-color: #fffbeb;
}

.system-card:nth-child(4) > div:first-child {
    background-color: #faf5ff;
}
.system-card:nth-child(5) > div:first-child {
    background-color: rgb(255 247 237 / var(--tw-bg-opacity));
}

.system-card:nth-child(6) > div:first-child {
    background-color: rgb(236 254 255 / var(--tw-bg-opacity));
}

.system-card:nth-child(7) > div:first-child {
    background-color: rgb(254 242 242 / var(--tw-bg-opacity));
}

.system-card:nth-child(8) > div:first-child {
    background-color: rgb(254 252 232 / var(--tw-bg-opacity));
}
 .selected.hover\:text-\[\#003366\]{    --tw-text-opacity: 1;
    color: rgb(0 51 102 / var(--tw-text-opacity));}
 .selected.hover\:bg-gray-50 {
    --tw-bg-opacity: 1;
    background-color: rgb(249 250 251 / var(--tw-bg-opacity));
}
.selected.hover\:border-\[\#C41E3A\] {
    --tw-border-opacity: 1;
    border-color: rgb(196 30 58 / var(--tw-border-opacity));
}
footer>div{    display: flex !important;    justify-content: space-between;}
