feat(portal): 门户左侧栏目导航+首页视觉升级+主题正名批次-PortalSideNav模型+attachCategoryNavigation注入doCategory/doArticle三件套categoryPath/navTopId/sideNav(站点快照树推导零新增查询,home/search不注入);7主题侧栏两栏markup+窄屏横滚+顶导航祖先高亮+二级下拉当前项高亮+面包屑全路径;cms_category.home_style全链路(news_grid 16条8x2日期前缀/media_focus形态)+PortalListData.Item补source来源徽标四处装配;Banner机制gallery展示位→galleryBanners四列大图轮播(自由字符串零DDL);页脚config 12新键(footer_addresses多校区/qr_*/social_*含URL校验,footerAddressLines由PortalSiteSnapshot.of拆行派生);新增展示型皮肤包campus-glow;fresh-mint2正名fresh-mint(theme.json/头注释同步);AttachmentService scene白名单加category(单页富文本贴图免清孤儿);新增PortalSideNavIT 8+PortalHomeBlocksIT 3,CategoryServiceIT/SiteServiceIT/PortalSsrIT/ThemeContractIT等单类独跑全绿;附sql/clear_cms_data.sql全量清库脚本(清cms_*六表留平台账号/主题包/上传文件,测试数据重走用)
build / build-push (push) Successful in 1m47s
build / build-push (push) Successful in 1m47s
This commit is contained in:
@@ -0,0 +1,650 @@
|
||||
/* ============================================================
|
||||
* fresh-mint 皮肤包样式(blue-white 派生,docs/10 皮肤包契约 §5)
|
||||
* 清新薄荷风(卡片封面版):主色 #17A2A2、浅薄荷底、白卡 12px 圆角 + 柔和阴影;
|
||||
* 细线吸顶顶栏 + 居中 logo;列表为带封面的卡片网格(一行 3 张);几何圆点装饰。
|
||||
* 无纹理、无通栏大图、无复杂动效。
|
||||
* 轮播图设计尺寸约定:1920×560(管理端上传端按此引导裁剪)。
|
||||
* ============================================================ */
|
||||
:root {
|
||||
--primary: #17A2A2;
|
||||
--primary-dark: #0F7C7C;
|
||||
--primary-soft: #E6F6F6;
|
||||
--bg: #F5FBFA;
|
||||
--card-bg: #FFFFFF;
|
||||
--border: #DCEDEB;
|
||||
--text: #1F2D2D;
|
||||
--text-light: #6B8382;
|
||||
|
||||
--radius: 12px;
|
||||
--radius-sm: 8px;
|
||||
--max-width: 1200px;
|
||||
|
||||
--shadow-card: 0 6px 18px rgba(15, 124, 124, .06);
|
||||
--shadow-hover: 0 14px 30px rgba(15, 124, 124, .13);
|
||||
--shadow-pop: 0 10px 26px rgba(15, 124, 124, .12);
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
|
||||
font-size: 15px;
|
||||
line-height: 1.7;
|
||||
color: var(--text);
|
||||
background-color: var(--bg);
|
||||
background-image: radial-gradient(rgba(23, 162, 162, .10) 1.6px, transparent 1.6px);
|
||||
background-size: 28px 28px;
|
||||
background-attachment: fixed;
|
||||
}
|
||||
body.decor-plain { background-image: none; }
|
||||
h1, h2, h3 { font-weight: 600; letter-spacing: .01em; }
|
||||
a { color: inherit; text-decoration: none; }
|
||||
a:hover { color: var(--primary-dark); }
|
||||
img { max-width: 100%; }
|
||||
time, .item-meta { color: var(--text-light); font-size: 13px; }
|
||||
.empty {
|
||||
color: var(--text-light);
|
||||
text-align: center;
|
||||
padding: 36px 0;
|
||||
background: var(--card-bg);
|
||||
border: 1px dashed var(--border);
|
||||
border-radius: var(--radius);
|
||||
}
|
||||
|
||||
/* ===== 头部:细线顶栏 + 居中 logo + 吸顶 ===== */
|
||||
.site-header {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 200;
|
||||
background: rgba(255, 255, 255, .94);
|
||||
border-bottom: 1px solid var(--border);
|
||||
box-shadow: 0 2px 12px rgba(15, 124, 124, .05);
|
||||
}
|
||||
.header-inner {
|
||||
max-width: var(--max-width);
|
||||
margin: 0 auto;
|
||||
padding: 12px 16px;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr auto 1fr;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
}
|
||||
.header-aside { display: flex; align-items: center; gap: 10px; min-width: 0; }
|
||||
.header-aside-left { justify-self: start; }
|
||||
.header-aside-right { justify-self: end; }
|
||||
|
||||
.site-brand { display: flex; align-items: center; gap: 12px; justify-self: center; }
|
||||
.site-logo { height: 40px; width: auto; }
|
||||
.site-name {
|
||||
font-size: 22px;
|
||||
font-weight: 600;
|
||||
color: var(--primary-dark);
|
||||
letter-spacing: .02em;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.site-search { display: flex; gap: 8px; }
|
||||
.site-search input {
|
||||
border: 1px solid var(--border);
|
||||
background: var(--primary-soft);
|
||||
border-radius: 999px;
|
||||
padding: 8px 16px;
|
||||
width: 190px;
|
||||
font-size: 14px;
|
||||
color: var(--text);
|
||||
outline: none;
|
||||
}
|
||||
.site-search input::placeholder { color: #9bb6b5; }
|
||||
.site-search input:focus { border-color: var(--primary); background: #fff; }
|
||||
.site-search button {
|
||||
border: none;
|
||||
border-radius: 999px;
|
||||
background: var(--primary);
|
||||
color: #fff;
|
||||
font-size: 14px;
|
||||
padding: 8px 20px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.site-search button:hover { background: var(--primary-dark); color: #fff; }
|
||||
|
||||
/* ===== 专业院系下拉(院系子站切换,《院系子站方案》) ===== */
|
||||
.site-colleges { position: relative; }
|
||||
.site-colleges .colleges-toggle {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 999px;
|
||||
background: #fff;
|
||||
padding: 7px 16px;
|
||||
cursor: pointer;
|
||||
color: var(--primary-dark);
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.site-colleges .colleges-toggle:hover { border-color: var(--primary); background: var(--primary-soft); }
|
||||
.site-colleges .colleges-arrow { font-style: normal; font-size: 12px; color: var(--text-light); }
|
||||
.site-colleges .colleges-menu {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: calc(100% + 8px);
|
||||
right: 0;
|
||||
min-width: 200px;
|
||||
max-height: 420px;
|
||||
overflow-y: auto;
|
||||
margin: 0;
|
||||
padding: 6px;
|
||||
list-style: none;
|
||||
background: var(--card-bg);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
box-shadow: var(--shadow-pop);
|
||||
z-index: 210;
|
||||
}
|
||||
.site-colleges:hover .colleges-menu { display: block; }
|
||||
.site-colleges .colleges-menu li a {
|
||||
display: block;
|
||||
padding: 9px 14px;
|
||||
border-radius: var(--radius-sm);
|
||||
color: var(--text);
|
||||
white-space: nowrap;
|
||||
}
|
||||
.site-colleges .colleges-menu li a:hover { background: var(--primary-soft); color: var(--primary-dark); }
|
||||
.site-colleges .colleges-menu li.active a { color: var(--primary-dark); font-weight: 600; background: var(--primary-soft); }
|
||||
|
||||
/* ===== 主导航:细线文字导航 + 薄荷下划线激活态 ===== */
|
||||
.site-nav { background: transparent; border-top: 1px solid var(--border); }
|
||||
.site-nav ul {
|
||||
max-width: var(--max-width);
|
||||
margin: 0 auto;
|
||||
padding: 0 16px;
|
||||
list-style: none;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
}
|
||||
.site-nav > ul > li { position: relative; }
|
||||
.site-nav li > a {
|
||||
display: block;
|
||||
padding: 13px 22px;
|
||||
color: var(--text);
|
||||
font-weight: 500;
|
||||
position: relative;
|
||||
}
|
||||
.site-nav > ul > li > a::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 22px;
|
||||
right: 22px;
|
||||
bottom: 8px;
|
||||
height: 2px;
|
||||
border-radius: 2px;
|
||||
background: var(--primary);
|
||||
transform: scaleX(0);
|
||||
transition: transform .18s ease;
|
||||
}
|
||||
.site-nav > ul > li:hover > a::before,
|
||||
.site-nav > ul > li.active > a::before { transform: scaleX(1); }
|
||||
.site-nav > ul > li:hover > a,
|
||||
.site-nav > ul > li.active > a { color: var(--primary-dark); }
|
||||
.site-nav li.has-sub > a::after { content: " ▾"; font-size: 12px; opacity: .7; }
|
||||
|
||||
/* ===== 二级下拉导航 ===== */
|
||||
.site-nav ul.sub-nav {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 0;
|
||||
min-width: 178px;
|
||||
max-width: none;
|
||||
margin: 0;
|
||||
padding: 6px;
|
||||
list-style: none;
|
||||
background: var(--card-bg);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
box-shadow: var(--shadow-pop);
|
||||
z-index: 205;
|
||||
}
|
||||
.site-nav li:hover > .sub-nav { display: block; }
|
||||
.site-nav .sub-nav li a {
|
||||
padding: 9px 16px;
|
||||
border-radius: var(--radius-sm);
|
||||
color: var(--text);
|
||||
white-space: nowrap;
|
||||
background: none;
|
||||
}
|
||||
.site-nav .sub-nav li a::before { display: none; }
|
||||
.site-nav .sub-nav li a:hover { background: var(--primary-soft); color: var(--primary-dark); }
|
||||
.site-nav .sub-nav li.active a { color: var(--primary-dark); font-weight: 600; }
|
||||
|
||||
/* ===== 首页轮播(收窄 + 圆角,不做通栏大图) ===== */
|
||||
.banner {
|
||||
position: relative;
|
||||
max-width: var(--max-width);
|
||||
margin: 24px auto 4px;
|
||||
padding: 0 16px;
|
||||
}
|
||||
.banner-slides {
|
||||
position: relative;
|
||||
height: 380px;
|
||||
border-radius: var(--radius);
|
||||
overflow: hidden;
|
||||
box-shadow: var(--shadow-card);
|
||||
}
|
||||
.banner-slide { display: none; position: absolute; inset: 0; }
|
||||
.banner-slide.active { display: block; }
|
||||
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
|
||||
.banner-title {
|
||||
position: absolute;
|
||||
left: 16px;
|
||||
right: auto;
|
||||
bottom: 16px;
|
||||
max-width: 68%;
|
||||
padding: 8px 18px;
|
||||
border-radius: 999px;
|
||||
background: rgba(255, 255, 255, .92);
|
||||
color: var(--text);
|
||||
font-weight: 500;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.banner-dots {
|
||||
position: absolute;
|
||||
bottom: 24px;
|
||||
right: 32px;
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
}
|
||||
.banner-dots button {
|
||||
width: 9px;
|
||||
height: 9px;
|
||||
border-radius: 50%;
|
||||
border: none;
|
||||
background: rgba(255, 255, 255, .75);
|
||||
cursor: pointer;
|
||||
}
|
||||
.banner-dots button.active { background: var(--primary); transform: scale(1.25); }
|
||||
|
||||
/* ===== 通用区块:白卡 + 柔和阴影 ===== */
|
||||
.top-strip, .category-block {
|
||||
max-width: var(--max-width);
|
||||
margin: 20px auto;
|
||||
padding: 22px 24px 24px;
|
||||
background: var(--card-bg);
|
||||
border: none;
|
||||
border-radius: var(--radius);
|
||||
box-shadow: var(--shadow-card);
|
||||
}
|
||||
.section-title, .block-head h2 {
|
||||
margin: 0 0 16px;
|
||||
font-size: 19px;
|
||||
font-weight: 600;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.section-title::before, .block-head h2::before {
|
||||
content: "";
|
||||
flex: none;
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
margin-right: 26px;
|
||||
border-radius: 50%;
|
||||
background: var(--primary);
|
||||
box-shadow: 12px 0 0 rgba(23, 162, 162, .32), 24px 0 0 rgba(23, 162, 162, .14);
|
||||
}
|
||||
.block-head { display: flex; align-items: baseline; justify-content: space-between; }
|
||||
.more {
|
||||
font-size: 13px;
|
||||
color: var(--primary-dark);
|
||||
background: var(--primary-soft);
|
||||
border-radius: 999px;
|
||||
padding: 4px 14px;
|
||||
flex: none;
|
||||
}
|
||||
|
||||
/* 头条推荐:卡片网格(listLayout=list 时回落为行列表) */
|
||||
.top-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
|
||||
.top-grid li {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
padding: 16px 18px;
|
||||
background: var(--primary-soft);
|
||||
border-radius: var(--radius-sm);
|
||||
}
|
||||
.top-grid li a {
|
||||
flex: 1;
|
||||
font-weight: 500;
|
||||
color: var(--text);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.top-grid li time { flex: none; }
|
||||
.top-grid.is-list { display: block; }
|
||||
.top-grid.is-list li { background: transparent; padding: 11px 0; border-bottom: 1px solid var(--border); }
|
||||
.top-grid.is-list li:last-child { border-bottom: none; }
|
||||
|
||||
/* 栏目区块:行列表 + 圆点标记 */
|
||||
.block-list { list-style: none; margin: 0; padding: 0; }
|
||||
.block-list li {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
padding: 11px 0;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.block-list li:last-child { border-bottom: none; }
|
||||
.block-list li a {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.block-list li a::before {
|
||||
content: "";
|
||||
flex: none;
|
||||
width: 5px;
|
||||
height: 5px;
|
||||
border-radius: 50%;
|
||||
background: var(--primary);
|
||||
opacity: .5;
|
||||
}
|
||||
.top-badge {
|
||||
flex: none;
|
||||
color: #fff;
|
||||
background: var(--primary);
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
padding: 2px 10px;
|
||||
border-radius: 999px;
|
||||
}
|
||||
|
||||
/* ===== 列表页:卡片网格(一行三张,支持封面) ===== */
|
||||
.list-main {
|
||||
max-width: var(--max-width);
|
||||
margin: 0 auto;
|
||||
padding: 24px 16px 48px;
|
||||
background: transparent;
|
||||
border: none;
|
||||
}
|
||||
.home-main { padding-bottom: 8px; }
|
||||
.breadcrumb { color: var(--text-light); font-size: 13px; margin: 0 0 14px; }
|
||||
.breadcrumb a { margin-right: 8px; }
|
||||
.breadcrumb span { margin-left: 8px; color: var(--primary-dark); }
|
||||
.page-title {
|
||||
font-size: 24px;
|
||||
font-weight: 600;
|
||||
margin: 0 0 22px;
|
||||
padding-bottom: 14px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.article-list {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 20px;
|
||||
}
|
||||
.article-list li {
|
||||
background: var(--card-bg);
|
||||
border-radius: var(--radius);
|
||||
box-shadow: var(--shadow-card);
|
||||
overflow: hidden;
|
||||
transition: transform .2s ease, box-shadow .2s ease;
|
||||
}
|
||||
.article-list li:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
|
||||
.item-card { display: flex; flex-direction: column; height: 100%; }
|
||||
.item-cover {
|
||||
display: block;
|
||||
aspect-ratio: 16 / 9;
|
||||
overflow: hidden;
|
||||
background: var(--primary-soft);
|
||||
}
|
||||
.item-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
|
||||
.item-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
|
||||
.item-title {
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
line-height: 1.5;
|
||||
color: var(--text);
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
}
|
||||
.item-summary {
|
||||
color: var(--text-light);
|
||||
font-size: 14px;
|
||||
line-height: 1.7;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
}
|
||||
.item-meta { display: flex; gap: 10px; align-items: center; margin-top: auto; padding-top: 4px; }
|
||||
|
||||
.article-list.is-list { display: block; }
|
||||
.article-list.is-list li { margin-bottom: 14px; }
|
||||
.article-list.is-list .item-card { flex-direction: row; align-items: center; gap: 18px; padding: 16px 20px; }
|
||||
.article-list.is-list .item-cover { width: 190px; flex: none; aspect-ratio: 16 / 10; border-radius: var(--radius-sm); }
|
||||
.article-list.is-list .item-body { padding: 0; }
|
||||
.article-list.is-list .item-meta { margin-top: 4px; }
|
||||
|
||||
/* ===== 分页 ===== */
|
||||
.pagination { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 36px 0 8px; }
|
||||
.pagination a {
|
||||
min-width: 36px;
|
||||
text-align: center;
|
||||
padding: 7px 14px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 999px;
|
||||
background: var(--card-bg);
|
||||
color: var(--text-light);
|
||||
}
|
||||
.pagination a:hover { border-color: var(--primary); color: var(--primary-dark); }
|
||||
.pagination a.active { background: var(--primary); color: #fff; border-color: var(--primary); }
|
||||
|
||||
/* ===== 详情 / 单页 ===== */
|
||||
.detail-main {
|
||||
max-width: 1000px;
|
||||
margin: 24px auto 48px;
|
||||
padding: 36px 40px 40px;
|
||||
background: var(--card-bg);
|
||||
border: none;
|
||||
border-radius: var(--radius);
|
||||
box-shadow: var(--shadow-card);
|
||||
}
|
||||
.article-title { margin: 8px 0 14px; font-size: 27px; font-weight: 600; text-align: center; line-height: 1.45; }
|
||||
.article-meta {
|
||||
display: flex;
|
||||
gap: 0;
|
||||
justify-content: center;
|
||||
flex-wrap: wrap;
|
||||
color: var(--text-light);
|
||||
font-size: 13px;
|
||||
padding-bottom: 20px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.article-meta > * { padding: 0 12px; position: relative; }
|
||||
.article-meta > * + *::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 50%;
|
||||
width: 4px;
|
||||
height: 4px;
|
||||
margin-top: -2px;
|
||||
border-radius: 50%;
|
||||
background: var(--primary);
|
||||
opacity: .5;
|
||||
}
|
||||
.article-content { line-height: 1.95; font-size: 16px; padding-top: 24px; word-break: break-word; color: var(--text); }
|
||||
.article-content p { margin: 0 0 16px; }
|
||||
.article-content h1, .article-content h2, .article-content h3 { margin: 26px 0 12px; }
|
||||
.article-content img { height: auto; border-radius: var(--radius-sm); }
|
||||
.article-content a { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 3px; }
|
||||
.article-content blockquote {
|
||||
margin: 18px 0;
|
||||
padding: 12px 18px;
|
||||
background: var(--primary-soft);
|
||||
border-left: 3px solid var(--primary);
|
||||
border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
|
||||
}
|
||||
.article-content table { border-collapse: collapse; width: 100%; }
|
||||
.article-content table td, .article-content table th { border: 1px solid var(--border); padding: 8px 12px; }
|
||||
.article-sibling { display: flex; flex-direction: column; gap: 10px; margin-top: 32px; font-size: 14px; }
|
||||
.article-sibling a {
|
||||
padding: 12px 18px;
|
||||
border-radius: var(--radius-sm);
|
||||
background: var(--card-bg);
|
||||
border: 1px solid var(--border);
|
||||
color: var(--text-light);
|
||||
}
|
||||
.article-sibling a:hover { border-color: var(--primary); color: var(--primary-dark); }
|
||||
|
||||
/* ===== 页脚(浅薄荷底) ===== */
|
||||
.site-footer {
|
||||
margin-top: 40px;
|
||||
background: var(--primary-soft);
|
||||
color: var(--text-light);
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
.footer-decor {
|
||||
height: 26px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.footer-decor::before {
|
||||
content: "";
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
border-radius: 50%;
|
||||
background: var(--primary);
|
||||
box-shadow: 14px 0 0 rgba(23, 162, 162, .32), -14px 0 0 rgba(23, 162, 162, .32);
|
||||
}
|
||||
.footer-links {
|
||||
max-width: var(--max-width);
|
||||
margin: 0 auto;
|
||||
padding: 8px 16px 4px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
}
|
||||
.links-group { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; font-size: 13px; }
|
||||
.group-name {
|
||||
font-weight: 600;
|
||||
color: var(--primary-dark);
|
||||
margin-right: 6px;
|
||||
padding-right: 16px;
|
||||
position: relative;
|
||||
}
|
||||
.group-name::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 50%;
|
||||
width: 4px;
|
||||
height: 4px;
|
||||
margin-top: -2px;
|
||||
border-radius: 50%;
|
||||
background: var(--primary);
|
||||
opacity: .5;
|
||||
}
|
||||
.links-group a { color: var(--text-light); }
|
||||
.links-group a:hover { color: var(--primary-dark); }
|
||||
.footer-info {
|
||||
max-width: var(--max-width);
|
||||
margin: 0 auto;
|
||||
padding: 14px 16px 26px;
|
||||
text-align: center;
|
||||
font-size: 13px;
|
||||
}
|
||||
.footer-info p { margin: 4px 0; }
|
||||
.links-group a .link-logo,
|
||||
.sp-links-row a .link-logo {
|
||||
height: 20px;
|
||||
width: auto;
|
||||
max-width: 64px;
|
||||
object-fit: contain;
|
||||
vertical-align: middle;
|
||||
margin-right: 4px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
/* ===== 移动端适配 ===== */
|
||||
@media (max-width: 768px) {
|
||||
.header-inner { grid-template-columns: 1fr; justify-items: center; gap: 12px; padding: 12px 14px; }
|
||||
.site-brand { order: 1; justify-self: center; }
|
||||
.header-aside-right { order: 2; justify-self: stretch; }
|
||||
.header-aside-left { order: 3; justify-self: center; }
|
||||
.site-search { flex: 1; }
|
||||
.site-search input { flex: 1; width: auto; min-width: 0; }
|
||||
.site-colleges .colleges-menu { left: 50%; right: auto; transform: translateX(-50%); min-width: 200px; }
|
||||
.site-nav ul { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; }
|
||||
.site-nav > ul > li > a { padding: 12px 16px; white-space: nowrap; }
|
||||
.site-nav > ul > li > a::before { left: 16px; right: 16px; }
|
||||
|
||||
.banner { margin-top: 16px; }
|
||||
.banner-slides { height: 190px; }
|
||||
.banner-title { font-size: 13px; padding: 6px 14px; }
|
||||
.banner-dots { bottom: 14px; right: 20px; }
|
||||
|
||||
.top-grid { grid-template-columns: 1fr; }
|
||||
.article-list { grid-template-columns: 1fr; }
|
||||
.article-list.is-list .item-card { flex-direction: column; align-items: stretch; }
|
||||
.article-list.is-list .item-cover { width: 100%; aspect-ratio: 16 / 9; }
|
||||
.top-strip, .category-block { padding: 18px 16px 20px; margin: 16px auto; }
|
||||
.detail-main { margin: 16px auto 32px; padding: 22px 18px 26px; }
|
||||
.article-title { font-size: 22px; }
|
||||
.article-content { font-size: 15px; }
|
||||
|
||||
.site-nav ul.sub-nav {
|
||||
display: block;
|
||||
position: static;
|
||||
border: none;
|
||||
border-radius: var(--radius-sm);
|
||||
box-shadow: none;
|
||||
background: var(--primary-soft);
|
||||
min-width: 0;
|
||||
padding: 6px;
|
||||
}
|
||||
.site-nav .sub-nav li a { color: var(--text); padding: 8px 14px; }
|
||||
}
|
||||
|
||||
|
||||
/* ===== 左侧栏目导航(docs/11):有二级节点的模块,栏目/文章页左侧展示兄弟目录 ===== */
|
||||
.list-main.has-sidenav, .detail-main.has-sidenav { display: flex; align-items: flex-start; gap: 24px; }
|
||||
.has-sidenav .list-body { flex: 1; min-width: 0; }
|
||||
.side-nav { flex: none; width: 220px; background: var(--card-bg, #fff); border: 1px solid var(--border); overflow: hidden; }
|
||||
.side-nav-head { background: var(--primary); color: #fff; font-size: 20px; font-weight: 700; text-align: center; padding: 18px 12px; letter-spacing: 2px; }
|
||||
.side-nav-list { list-style: none; margin: 0; padding: 0; }
|
||||
.side-nav-item + .side-nav-item { border-top: 1px dashed var(--border); }
|
||||
.side-nav-item a { display: block; padding: 12px 16px; color: var(--text); text-decoration: none; font-size: 15px; transition: background .15s ease, color .15s ease; }
|
||||
.side-nav-item a:hover { color: var(--primary); background: var(--bg); }
|
||||
.side-nav-item.active a { background: var(--primary); color: #fff; font-weight: 600; text-decoration: none; }
|
||||
/* 顶导航二级下拉当前项高亮(docs/11 顺带) */
|
||||
.site-nav ul.sub-nav li.active a { color: var(--primary); }
|
||||
@media (max-width: 768px) {
|
||||
.list-main.has-sidenav, .detail-main.has-sidenav { flex-direction: column; gap: 12px; }
|
||||
.side-nav { width: 100%; }
|
||||
.side-nav-list { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; }
|
||||
.side-nav-item { flex: none; }
|
||||
.side-nav-item + .side-nav-item { border-top: none; border-left: 1px dashed var(--border); }
|
||||
.side-nav-item a { white-space: nowrap; }
|
||||
}
|
||||
@media print {
|
||||
.side-nav { display: none; }
|
||||
.list-main.has-sidenav, .detail-main.has-sidenav { display: block; }
|
||||
}
|
||||
Reference in New Issue
Block a user