init local code

This commit is contained in:
chenxing
2026-09-07 09:09:39 +08:00
commit 99cd26b3d2
259 changed files with 20554 additions and 0 deletions
@@ -0,0 +1,936 @@
/* ============================================================
* default 皮肤包样式(方案 §8.2 · 视觉规范见 docs/design-system.md)
* 换肤 = 拷贝 default 目录改 CSS 变量与布局,零后端代码。
* 轮播图设计尺寸约定:1920×560(theme.json bannerSize)。
* 规则:色值/字号/间距/圆角/阴影一律引用变量,禁止硬编码。
* ============================================================ */
:root {
/* —— 色板(design-system §2)—— */
--primary: #1a5cb0;
--primary-dark: #12447f;
--primary-deep: #0d2f5c;
--primary-deeper: #0a2242;
--accent: #c9972c;
--text: #1f2933;
--text-light: #52606d; /* 次要文字(兼容 theme.json 参数名 --text-light) */
--text-muted: #5f6b7a; /* 弱化文字:三种底色下对比度≥4.83(原#7b8794仅3.66不达标) */
--bg: #f4f6f9;
--card-bg: #ffffff;
--surface-variant: #eef2f7;
--border: #dde3ec;
--border-strong: #c3cddb;
--white: #ffffff;
--scrim: rgba(10, 26, 48, 0.62); /* 轮播标题条渐变深端 */
--overlay-dark: rgba(13, 47, 92, 0.55); /* 遮罩层 */
--shadow-color: rgba(13, 47, 92, 0.10);
--print-ink: #000000;
--on-dark: #ffffff;
--on-dark-muted: rgba(255, 255, 255, 0.78);
--on-dark-faint: rgba(255, 255, 255, 0.55);
/* —— 字号阶梯(design-system §3)—— */
--fs-xs: 12px;
--fs-sm: 13px;
--fs-base: 14px;
--fs-md: 15px;
--fs-lg: 17px;
--fs-xl: 20px;
--fs-2xl: 24px;
--fs-3xl: 30px;
--fs-brand: 26px;
/* —— 间距刻度(design-system §4)—— */
--sp-1: 4px;
--sp-2: 8px;
--sp-3: 12px;
--sp-4: 16px;
--sp-6: 24px;
--sp-8: 32px;
--sp-12: 48px;
--sp-16: 64px;
/* —— 圆角 / 阴影 / 层级 —— */
--r-sm: 4px;
--r-md: 8px;
--r-lg: 12px;
--shadow-sm: 0 1px 2px var(--shadow-color);
--shadow-md: 0 4px 16px var(--shadow-color);
--z-header: 100;
--z-dropdown: 110;
/* —— 栅格 —— */
--max-width: 1200px;
--gutter: 24px;
}
/* ===== 基础与重置 ===== */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
margin: 0;
font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
font-size: var(--fs-base);
line-height: 1.75;
color: var(--text);
background: var(--bg);
}
h1, h2, h3, h4, h5, h6 { line-height: 1.35; color: var(--text); margin: 0; }
p { margin: 0 0 var(--sp-3); }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--primary); }
a:focus-visible, button:focus-visible, input:focus-visible {
outline: 2px solid var(--primary);
outline-offset: 2px;
}
img { max-width: 100%; height: auto; }
button { font-family: inherit; }
time, .item-meta { color: var(--text-muted); font-size: var(--fs-sm); }
/* 跳过链接(无障碍) */
.skip-link {
position: absolute;
left: -9999px;
top: 0;
z-index: 200;
background: var(--primary);
color: var(--on-dark);
padding: var(--sp-2) var(--sp-4);
border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; color: var(--on-dark); }
/* ===== 页头 ===== */
/* 顶条:日期 + 专业院系(深蓝,真实功能项) */
.topbar {
background: var(--primary-deeper);
color: var(--on-dark-muted);
font-size: var(--fs-sm);
}
.topbar-inner {
max-width: var(--max-width);
margin: 0 auto;
padding: var(--sp-1) var(--gutter);
min-height: 38px;
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--sp-4);
}
.topbar-date { white-space: nowrap; }
.topbar-side { display: flex; align-items: center; gap: var(--sp-4); }
.site-colleges { position: relative; }
.site-colleges .colleges-toggle {
display: inline-flex;
align-items: center;
gap: var(--sp-1);
padding: 4px 2px;
cursor: pointer;
color: var(--on-dark-muted);
font-size: var(--fs-sm);
white-space: nowrap;
}
.site-colleges .colleges-toggle:hover { color: var(--on-dark); }
.site-colleges .colleges-arrow {
font-style: normal;
font-size: 11px;
transition: transform .18s ease;
}
.site-colleges:hover .colleges-arrow { transform: rotate(180deg); }
.site-colleges .colleges-menu {
display: none;
position: absolute;
top: 100%;
right: 0;
min-width: 200px;
max-height: 420px;
overflow-y: auto;
margin: 0;
padding: var(--sp-1) 0;
list-style: none;
background: var(--card-bg);
border: 1px solid var(--border);
border-top: 2px solid var(--accent);
border-radius: 0 0 var(--r-md) var(--r-md);
box-shadow: var(--shadow-md);
z-index: var(--z-dropdown);
}
.site-colleges:hover .colleges-menu, .site-colleges:focus-within .colleges-menu { display: block; }
.site-colleges .colleges-menu li a {
display: block;
padding: var(--sp-2) var(--sp-4);
color: var(--text);
white-space: nowrap;
font-size: var(--fs-base);
}
.site-colleges .colleges-menu li a:hover { background: var(--surface-variant); color: var(--primary); }
.site-colleges .colleges-menu li.active a { color: var(--primary); font-weight: 600; }
/* 品牌行:校徽 + 站名 + 站内搜索 */
.site-header { background: var(--card-bg); box-shadow: var(--shadow-sm); }
.header-inner {
max-width: var(--max-width);
margin: 0 auto;
padding: 20px var(--gutter);
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--sp-6);
}
.site-brand { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; }
.site-logo { height: 56px; width: auto; flex: none; }
.site-name {
font-size: var(--fs-brand);
font-weight: 700;
color: var(--primary-deep);
letter-spacing: 1px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.site-search { display: flex; flex: none; }
.site-search input {
border: 1px solid var(--border-strong);
border-right: none;
border-radius: var(--r-sm) 0 0 var(--r-sm);
padding: var(--sp-2) var(--sp-3);
width: 260px;
font-size: var(--fs-base);
color: var(--text);
background: var(--card-bg);
outline: none;
transition: border-color .18s ease, box-shadow .18s ease;
}
.site-search input::placeholder { color: var(--text-muted); }
.site-search input:focus {
border-color: var(--primary);
box-shadow: 0 0 0 4px var(--shadow-color);
}
.site-search button {
border: none;
background: var(--primary);
color: var(--on-dark);
padding: var(--sp-2) var(--sp-6);
font-size: var(--fs-base);
border-radius: 0 var(--r-sm) var(--r-sm) 0;
cursor: pointer;
transition: background .18s ease;
}
.site-search button:hover { background: var(--primary-dark); }
/* 主导航(蓝底 + 金色当前项下杠) */
.site-nav { background: var(--primary); box-shadow: var(--shadow-sm); }
.site-nav ul {
max-width: var(--max-width);
margin: 0 auto;
padding: 0 var(--gutter);
list-style: none;
display: flex;
flex-wrap: wrap;
}
.site-nav > ul > li { position: relative; }
.site-nav li a {
display: block;
padding: var(--sp-3) var(--sp-6);
color: var(--on-dark);
font-size: var(--fs-md);
position: relative;
transition: background .18s ease;
}
.site-nav li a::after {
content: "";
position: absolute;
left: var(--sp-6);
right: var(--sp-6);
bottom: 0;
height: 3px;
background: var(--accent);
border-radius: 2px 2px 0 0;
transform: scaleX(0);
transition: transform .18s ease;
}
.site-nav li:hover > a, .site-nav li.active > a { background: var(--primary-dark); }
.site-nav li.active > a::after, .site-nav li:hover > a::after { transform: scaleX(1); }
/* 二级下拉(白底面板) */
.site-nav li.has-sub > a .caret {
font-style: normal;
font-size: 11px;
margin-left: var(--sp-1);
opacity: .8;
}
.site-nav ul.sub-nav {
display: none;
position: absolute;
top: 100%;
left: 0;
min-width: 176px;
margin: 0;
padding: var(--sp-1) 0;
list-style: none;
background: var(--card-bg);
border: 1px solid var(--border);
border-top: 2px solid var(--accent);
border-radius: 0 0 var(--r-md) var(--r-md);
box-shadow: var(--shadow-md);
z-index: var(--z-dropdown);
}
.site-nav li:hover > ul.sub-nav, .site-nav li:focus-within > ul.sub-nav { display: block; }
.site-nav .sub-nav li a {
padding: var(--sp-2) var(--sp-4);
color: var(--text);
white-space: nowrap;
background: none;
font-size: var(--fs-base);
}
.site-nav .sub-nav li a::after { display: none; }
.site-nav .sub-nav li a:hover { background: var(--surface-variant); color: var(--primary); }
.site-nav .sub-nav li.active a { color: var(--primary); font-weight: 600; }
/* ===== 首页轮播(通栏 1920×560)===== */
.banner { position: relative; overflow: hidden; background: var(--primary-deep); }
.banner-slides { position: relative; aspect-ratio: 1920 / 560; max-height: 560px; }
.banner-slide { display: none; position: absolute; inset: 0; }
.banner-slide.active { display: block; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-title {
position: absolute;
left: 0; right: 0; bottom: 0;
padding: var(--sp-12) var(--gutter) var(--sp-4);
max-width: var(--max-width);
margin: 0 auto;
color: var(--on-dark);
font-size: var(--fs-xl);
font-weight: 600;
text-shadow: 0 1px 4px var(--scrim);
background: linear-gradient(transparent, var(--scrim));
}
.banner-dots {
position: absolute;
bottom: var(--sp-4);
right: max(var(--gutter), calc((100% - var(--max-width)) / 2 + var(--gutter)));
display: flex;
gap: var(--sp-2);
z-index: 20;
}
.banner-dots button {
width: 10px; height: 10px;
padding: 0;
border-radius: 999px;
border: none;
background: var(--on-dark-faint);
cursor: pointer;
transition: width .25s ease, background .25s ease;
}
.banner-dots button.active { width: 28px; background: var(--on-dark); }
.banner-arrow {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 44px; height: 44px;
border: none;
border-radius: 50%;
background: var(--overlay-dark);
color: var(--on-dark);
font-size: 22px;
line-height: 1;
cursor: pointer;
opacity: .55;
transition: opacity .2s ease, background .2s ease;
z-index: 20;
display: flex;
align-items: center;
justify-content: center;
padding: 0;
}
.banner-arrow:hover { opacity: 1; background: var(--primary-dark); }
.banner-arrow.prev { left: max(var(--gutter), calc((100% - var(--max-width)) / 2)); }
.banner-arrow.next { right: max(var(--gutter), calc((100% - var(--max-width)) / 2)); }
/* ===== 通用容器 ===== */
.home-main, .list-main, .detail-main { display: block; }
.container {
max-width: var(--max-width);
margin: 0 auto;
padding: 0 var(--gutter);
}
.section { margin: var(--sp-6) 0; }
.empty {
color: var(--text-muted);
text-align: center;
padding: var(--sp-12) var(--sp-4);
font-size: var(--fs-md);
}
/* 空状态插画(design-system §8:与正常态同等用心) */
.empty-state {
text-align: center;
padding: var(--sp-12) var(--sp-4);
color: var(--text-muted);
}
.empty-state::before {
content: "";
display: block;
width: 72px;
height: 54px;
margin: 0 auto var(--sp-4);
border: 2px solid var(--border-strong);
border-radius: var(--r-md);
background:
linear-gradient(var(--surface-variant) 60%, transparent 60%) 12px 10px / 40px 6px no-repeat,
linear-gradient(var(--surface-variant) 62%, transparent 62%) 12px 22px / 28px 6px no-repeat,
linear-gradient(var(--border) 100%, transparent 100%) 0 38px / 64px 2px no-repeat;
}
.empty-state .empty-hint { font-size: var(--fs-sm); margin-top: var(--sp-1); }
/* ===== 首页:头条区 ===== */
.headline-grid {
display: grid;
grid-template-columns: 2fr 1fr;
gap: var(--sp-6);
align-items: stretch;
}
.headline-card, .focus-card, .category-block {
background: var(--card-bg);
border: 1px solid var(--border);
border-radius: var(--r-md);
box-shadow: var(--shadow-sm);
padding: var(--sp-6);
}
/* 图片新闻卡内容纵向撑满:小图行贴底,与左卡等高时无底部空洞 */
.focus-card { display: flex; flex-direction: column; }
.focus-card .focus-rows { margin-top: auto; padding-top: var(--sp-3); }
.block-head {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: var(--sp-4);
margin-bottom: var(--sp-4);
padding-bottom: var(--sp-3);
border-bottom: 1px solid var(--border);
}
.block-head h2, .section-title {
font-size: var(--fs-xl);
color: var(--text);
position: relative;
padding-left: var(--sp-3);
}
.block-head h2::before, .section-title::before {
content: "";
position: absolute;
left: 0;
top: 6px;
bottom: 6px;
width: 4px;
border-radius: 2px;
background: linear-gradient(var(--primary), var(--primary-dark));
}
.more { font-size: var(--fs-sm); color: var(--text-muted); white-space: nowrap; }
.more:hover { color: var(--primary); }
/* 头条列表 */
.headline-list { list-style: none; }
.headline-lead { padding-bottom: var(--sp-4); border-bottom: 1px solid var(--border); }
.headline-lead .lead-title {
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
font-size: var(--fs-2xl);
font-weight: 700;
line-height: 1.4;
color: var(--primary-deep);
margin-bottom: var(--sp-2);
}
.headline-lead .lead-title:hover { color: var(--primary); }
.headline-lead .lead-meta { display: flex; gap: var(--sp-3); align-items: center; }
.headline-list li {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--sp-3);
padding: var(--sp-3) var(--sp-2);
margin: 0 calc(-1 * var(--sp-2));
border-bottom: 1px solid var(--border);
border-radius: var(--r-sm);
transition: background .15s ease;
}
.headline-list li:last-child { border-bottom: none; }
.headline-list li:hover { background: var(--surface-variant); }
.headline-list li a {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: var(--fs-md);
}
.top-badge {
flex: none;
color: var(--on-dark);
background: var(--accent);
font-size: var(--fs-xs);
line-height: 1;
padding: 3px var(--sp-2);
border-radius: var(--r-sm);
font-weight: 600;
}
/* 图片新闻卡(右侧) */
.focus-card .focus-item { display: block; }
.focus-card .focus-cover {
display: block;
border-radius: var(--r-md);
overflow: hidden;
aspect-ratio: 16 / 9;
margin-bottom: var(--sp-3);
background: var(--surface-variant);
}
.focus-card .focus-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.focus-card .focus-title {
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
font-size: var(--fs-md);
font-weight: 600;
color: var(--text);
line-height: 1.5;
}
.focus-card .focus-item:hover .focus-title { color: var(--primary); }
.focus-rows { list-style: none; margin-top: var(--sp-4); border-top: 1px solid var(--border); }
.focus-rows li { border-bottom: 1px solid var(--border); }
.focus-rows li:last-child { border-bottom: none; }
.focus-rows a { display: flex; gap: var(--sp-3); align-items: center; padding: var(--sp-3) 0; }
.focus-rows .row-cover {
flex: none;
display: block;
width: 96px;
aspect-ratio: 16 / 9;
border-radius: var(--r-sm);
overflow: hidden;
background: var(--surface-variant);
}
.focus-rows .row-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.focus-rows .row-title {
flex: 1;
min-width: 0;
font-size: var(--fs-base);
line-height: 1.6;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.focus-rows a:hover .row-title { color: var(--primary); }
/* ===== 首页:栏目区块 ===== */
.blocks-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--sp-6);
}
.block-list { list-style: none; }
.block-featured { padding-bottom: var(--sp-4); border-bottom: 1px solid var(--border); }
.block-featured > a { display: flex; gap: var(--sp-4); align-items: flex-start; }
.block-featured .feat-cover {
flex: none;
display: block;
width: 168px;
aspect-ratio: 16 / 9;
border-radius: var(--r-sm);
overflow: hidden;
background: var(--surface-variant);
}
.block-featured .feat-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.block-featured .feat-body { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.block-featured .feat-title {
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
font-size: var(--fs-md);
font-weight: 600;
color: var(--text);
line-height: 1.5;
}
.block-featured .feat-summary {
color: var(--text-light);
font-size: var(--fs-sm);
line-height: 1.6;
margin-top: var(--sp-2);
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.block-featured .feat-meta { margin-top: auto; padding-top: var(--sp-2); }
.block-featured a:hover .feat-title { color: var(--primary); }
.block-list li.item {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--sp-3);
padding: var(--sp-3) var(--sp-2);
margin: 0 calc(-1 * var(--sp-2));
border-bottom: 1px solid var(--border);
border-radius: var(--r-sm);
transition: background .15s ease;
}
.block-list li.item:last-child { border-bottom: none; }
.block-list li.item:hover { background: var(--surface-variant); }
.block-list li.item a {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
position: relative;
padding-left: var(--sp-3);
}
.block-list li.item a::before {
content: "";
position: absolute;
left: 0;
top: 50%;
width: 5px;
height: 5px;
margin-top: -2.5px;
border-radius: 50%;
background: var(--border-strong);
transition: background .15s ease;
}
.block-list li.item:hover a::before { background: var(--primary); }
/* ===== 列表页 ===== */
.list-main { margin: var(--sp-6) auto; }
.page-card {
background: var(--card-bg);
border: 1px solid var(--border);
border-radius: var(--r-md);
box-shadow: var(--shadow-sm);
padding: var(--sp-8) var(--sp-6);
}
.breadcrumb {
color: var(--text-muted);
font-size: var(--fs-sm);
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--sp-2);
margin-bottom: var(--sp-4);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .crumb-sep { color: var(--border-strong); }
.breadcrumb .current { color: var(--text-light); font-weight: 500; }
.page-title {
font-size: var(--fs-2xl);
color: var(--text);
position: relative;
padding-left: var(--sp-3);
margin: 0 0 var(--sp-6);
}
.page-title::before {
content: "";
position: absolute;
left: 0;
top: 8px;
bottom: 8px;
width: 4px;
border-radius: 2px;
background: linear-gradient(var(--primary), var(--primary-dark));
}
.article-list { list-style: none; }
.article-list > li {
padding: var(--sp-4) 0;
border-bottom: 1px solid var(--border);
}
.article-list > li:last-child { border-bottom: none; }
.article-item { display: flex; gap: var(--sp-4); align-items: flex-start; }
.article-item .item-cover {
flex: none;
width: 168px;
aspect-ratio: 16 / 9;
border-radius: var(--r-sm);
overflow: hidden;
background: var(--surface-variant);
}
.article-item .item-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-item .item-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: var(--sp-1); }
.article-item.plain { padding: var(--sp-1) 0; align-items: baseline; }
.article-item.plain .item-title { font-size: var(--fs-lg); }
.item-title { font-size: var(--fs-lg); font-weight: 500; line-height: 1.5; }
.item-title a:hover { color: var(--primary); }
.item-summary {
color: var(--text-light);
font-size: var(--fs-base);
line-height: 1.65;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.item-meta { display: flex; gap: var(--sp-3); align-items: center; margin-top: var(--sp-1); }
.article-item .item-meta { margin-top: auto; }
/* ===== 分页 ===== */
.pagination { display: flex; gap: var(--sp-2); justify-content: center; align-items: center; padding: var(--sp-8) 0 var(--sp-2); flex-wrap: wrap; }
.pagination a {
min-width: 36px;
text-align: center;
padding: var(--sp-1) var(--sp-3);
border: 1px solid var(--border);
background: var(--card-bg);
border-radius: var(--r-sm);
font-size: var(--fs-base);
color: var(--text-light);
transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); background: var(--surface-variant); }
.pagination a.active { background: var(--primary); color: var(--on-dark); border-color: var(--primary); font-weight: 600; }
.pagination a.disabled { opacity: .4; pointer-events: none; }
/* ===== 详情 / 单页 ===== */
.detail-main { margin: var(--sp-6) auto; }
.article-title {
margin: var(--sp-2) 0 var(--sp-4);
font-size: var(--fs-3xl);
font-weight: 700;
text-align: center;
line-height: 1.4;
}
.article-meta {
display: flex;
gap: var(--sp-4);
justify-content: center;
flex-wrap: wrap;
color: var(--text-muted);
font-size: var(--fs-sm);
padding: var(--sp-2) 0 var(--sp-4);
border-bottom: 1px solid var(--border);
}
.article-content {
line-height: 1.9;
font-size: 16px;
color: var(--text);
padding-top: var(--sp-6);
word-break: break-word;
}
.article-content p { text-indent: 2em; margin: 0 0 var(--sp-3); }
.article-content p:has(img), .article-content figure p { text-indent: 0; text-align: center; }
.article-content p > img:only-child { display: inline-block; }
.article-content img { height: auto; border-radius: var(--r-sm); }
.article-content figure { margin: var(--sp-4) auto; text-align: center; text-indent: 0; }
.article-content figcaption { font-size: var(--fs-sm); color: var(--text-muted); margin-top: var(--sp-2); }
.article-content h2, .article-content h3 { margin: var(--sp-6) 0 var(--sp-3); }
.article-content h2 { font-size: var(--fs-xl); }
.article-content h3 { font-size: var(--fs-lg); }
.article-content ul, .article-content ol { margin: 0 0 var(--sp-3) 2em; text-indent: 0; }
.article-content li { margin-bottom: var(--sp-1); }
.article-content blockquote {
margin: var(--sp-4) 0;
padding: var(--sp-3) var(--sp-4);
border-left: 4px solid var(--accent);
background: var(--surface-variant);
border-radius: 0 var(--r-sm) var(--r-sm) 0;
color: var(--text-light);
text-indent: 0;
}
.article-content table {
border-collapse: collapse;
width: 100%;
margin: var(--sp-4) 0;
font-size: var(--fs-base);
}
.article-content table td, .article-content table th {
border: 1px solid var(--border-strong);
padding: var(--sp-2) var(--sp-3);
}
.article-content table th { background: var(--surface-variant); font-weight: 600; }
.article-content table tbody tr:nth-child(even) { background: var(--surface-variant); }
.article-content table tbody tr:hover { background: var(--border); }
/* 上下篇 */
.article-sibling {
display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--sp-4);
margin-top: var(--sp-8);
padding-top: var(--sp-6);
border-top: 1px solid var(--border);
}
.article-sibling a {
display: flex;
flex-direction: column;
gap: var(--sp-1);
padding: var(--sp-3) var(--sp-4);
background: var(--card-bg);
border: 1px solid var(--border-strong);
border-radius: var(--r-md);
box-shadow: var(--shadow-sm);
transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.article-sibling a:hover {
border-color: var(--primary);
box-shadow: var(--shadow-md);
transform: translateY(-1px);
}
.article-sibling a.next { text-align: right; }
.article-sibling .sib-label { font-size: var(--fs-sm); color: var(--text-muted); }
.article-sibling .sib-title {
font-size: var(--fs-base);
color: var(--text);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.article-sibling a:hover .sib-title { color: var(--primary); }
.article-sibling .sib-none {
display: flex;
flex-direction: column;
gap: var(--sp-1);
padding: var(--sp-3) var(--sp-4);
background: var(--surface-variant);
border: 1px dashed var(--border-strong);
border-radius: var(--r-md);
color: var(--text-muted);
}
.article-sibling .sib-none.next { text-align: right; }
/* ===== 页脚 ===== */
/* 友链区(浅底) */
.footer-links { background: var(--surface-variant); border-top: 1px solid var(--border); }
.footer-links-inner {
max-width: var(--max-width);
margin: 0 auto;
padding: var(--sp-4) var(--gutter);
display: flex;
flex-direction: column;
gap: var(--sp-2);
}
.links-group {
display: flex;
flex-wrap: wrap;
gap: var(--sp-2) var(--sp-4);
align-items: baseline;
font-size: var(--fs-sm);
}
.links-group .group-name {
font-weight: 600;
color: var(--primary-deep);
margin-right: var(--sp-2);
position: relative;
padding-left: var(--sp-3);
}
.links-group .group-name::before {
content: "";
position: absolute;
left: 0;
top: 50%;
width: 4px;
height: 4px;
margin-top: -2px;
border-radius: 50%;
background: var(--accent);
}
.links-group a { color: var(--text-light); }
.links-group a:hover { color: var(--primary); }
/* 页脚主区(深蓝) */
.site-footer { margin-top: var(--sp-8); background: var(--primary-deep); color: var(--on-dark-muted); }
.footer-main {
max-width: var(--max-width);
margin: 0 auto;
padding: var(--sp-8) var(--gutter) var(--sp-6);
display: flex;
flex-wrap: wrap;
gap: var(--sp-8);
align-items: flex-start;
justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: var(--sp-3); }
.footer-brand .footer-logo { height: 48px; width: auto; }
.footer-brand .footer-site { font-size: var(--fs-xl); font-weight: 600; color: var(--on-dark); letter-spacing: 1px; }
.footer-info {
text-align: right;
font-size: var(--fs-sm);
line-height: 2;
margin: 0;
}
.footer-info p { margin: 0; }
.footer-info a { color: var(--on-dark-muted); }
.footer-info a:hover { color: var(--on-dark); }
/* 页脚底条 */
.footer-bottom {
background: var(--primary-deeper);
border-top: 1px solid var(--on-dark-faint);
}
.footer-bottom-inner {
max-width: var(--max-width);
margin: 0 auto;
padding: var(--sp-3) var(--gutter);
text-align: center;
font-size: var(--fs-sm);
color: var(--on-dark-faint);
}
.footer-bottom-inner p { margin: var(--sp-1) 0; }
.footer-bottom-inner a { color: var(--on-dark-muted); }
.footer-bottom-inner a:hover { color: var(--on-dark); }
/* ===== 移动端适配 ===== */
@media (max-width: 1024px) {
.headline-grid { grid-template-columns: 1fr; }
.blocks-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
:root { --gutter: 16px; }
.topbar-inner { justify-content: center; }
.topbar-side { display: none; }
.header-inner { flex-direction: column; align-items: stretch; gap: var(--sp-3); padding: var(--sp-3) var(--gutter); }
.site-logo { height: 44px; }
.site-name { font-size: var(--fs-xl); }
.site-search { width: 100%; }
.site-search input { flex: 1; width: auto; }
.site-nav ul { overflow-x: auto; flex-wrap: nowrap; }
.site-nav li a { padding: var(--sp-3) var(--sp-4); white-space: nowrap; }
.banner-slides { aspect-ratio: 4 / 3; max-height: none; }
.banner-title { font-size: var(--fs-md); padding: var(--sp-8) var(--sp-4) var(--sp-3); }
.banner-arrow { display: none; }
.page-card, .headline-card, .focus-card, .category-block { padding: var(--sp-4) var(--sp-3); }
.article-item { flex-direction: column; }
.article-item .item-cover { width: 100%; }
.article-sibling { grid-template-columns: 1fr; }
.footer-main { flex-direction: column; gap: var(--sp-4); }
.footer-info { text-align: left; }
.article-title { font-size: var(--fs-2xl); }
/* 触屏无 hover:子菜单静态平铺,不做浮层 */
.site-nav ul.sub-nav {
display: block;
position: static;
border: none;
box-shadow: none;
background: var(--primary-dark);
border-radius: 0;
min-width: 0;
padding: 0;
}
.site-nav .sub-nav li a { color: var(--on-dark-muted); padding: var(--sp-2) var(--sp-4) var(--sp-2) var(--sp-8); }
.site-nav .sub-nav li a:hover { background: var(--primary-deep); color: var(--on-dark); }
}
/* ===== 打印样式(公告高频打印场景)===== */
@media print {
.site-header, .topbar, .site-nav, .banner, .footer-links, .site-footer,
.article-sibling, .pagination, .skip-link, .site-search, .site-colleges { display: none !important; }
body { background: var(--white); color: var(--print-ink); font-size: 12pt; }
.page-card, .detail-main .page-card { border: none; box-shadow: none; padding: 0; margin: 0; max-width: 100%; }
.article-title { font-size: 20pt; }
.article-content { font-size: 11.5pt; line-height: 1.8; }
.article-content p { text-indent: 2em; }
.article-content table th { background: var(--surface-variant) !important; }
a { color: inherit; }
}