Files
resume/css/nav.css
T
wonder cc177fcb9b
Deploy Resume / deploy (push) Successful in 22s
提升版本切换可见性:悬浮入口 + 手机端适配
- 简历页固定右上角「切换简历版本」悬浮入口(打印隐藏),替代仅页脚的弱入口
- 简历页 viewport 改为 width=794,手机整页缩放显示不再横向裁切
- 导航页窄屏下 2x2 矩阵改为单列堆叠
2026-11-03 12:31:05 +08:00

256 lines
4.1 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* css/nav.css —— 导航页 / 纯文本选择页 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "Microsoft YaHei", Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #f5f7fa;
}
.nav-wrap {
text-align: center;
padding: 40px;
background: #fff;
border-radius: 12px;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
max-width: 720px;
width: 92%;
}
h1 {
font-size: 28px;
font-weight: 700;
color: #222;
margin-bottom: 8px;
}
.subtitle {
font-size: 14px;
color: #888;
margin-bottom: 32px;
}
/* 2×2 矩阵 */
.matrix {
display: grid;
grid-template-columns: max-content 1fr 1fr;
gap: 12px;
text-align: left;
}
.matrix-corner {
min-width: 110px;
}
.matrix-colhead {
font-size: 13px;
font-weight: 700;
color: #4478DF;
text-align: center;
padding-bottom: 2px;
border-bottom: 2px solid #EEF3FF;
}
.matrix-rowhead {
font-size: 13px;
font-weight: 700;
color: #4478DF;
display: flex;
align-items: center;
justify-content: flex-end;
padding-right: 10px;
text-align: right;
}
.card {
padding: 16px 18px;
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 8px;
transition: all 0.2s ease;
}
.card:hover {
background: #EEF3FF;
border-color: #4478DF;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(68, 120, 223, 0.15);
}
.card-default {
border-color: #4478DF;
background: #EEF3FF;
}
.card-title {
font-size: 15px;
font-weight: 600;
color: #222;
}
.badge {
display: inline-block;
margin-left: 8px;
padding: 1px 8px;
font-size: 11px;
font-weight: 400;
color: #fff;
background: #4478DF;
border-radius: 10px;
vertical-align: middle;
}
.card-desc {
font-size: 12px;
color: #888;
margin-top: 6px;
}
.card-links {
margin-top: 12px;
display: flex;
align-items: center;
gap: 14px;
}
.card-link {
color: #4478DF;
text-decoration: none;
font-size: 14px;
font-weight: 600;
}
.card-link:hover {
text-decoration: underline;
}
.card-link-sub {
color: #888;
text-decoration: none;
font-size: 12px;
}
.card-link-sub:hover {
color: #4478DF;
}
/* 纯文本选择页列表 */
.resume-list {
list-style: none;
padding: 0;
margin: 0;
text-align: left;
}
.resume-list li {
margin-bottom: 16px;
}
.resume-list a {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px 20px;
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 8px;
text-decoration: none;
color: #222;
transition: all 0.2s ease;
}
.resume-list a:hover {
background: #EEF3FF;
border-color: #4478DF;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(68, 120, 223, 0.15);
}
.resume-title {
font-size: 16px;
font-weight: 600;
}
.resume-desc {
font-size: 12px;
color: #888;
margin-top: 4px;
}
.arrow {
color: #4478DF;
font-size: 20px;
}
.back-link {
display: inline-block;
margin-top: 24px;
color: #4478DF;
text-decoration: none;
font-size: 14px;
}
.back-link:hover {
text-decoration: underline;
}
/* 页脚 */
.nav-footer {
margin-top: 36px;
padding-top: 16px;
border-top: 1px solid #e2e8f0;
font-size: 13px;
color: #666;
}
.nav-links {
margin-top: 8px;
display: flex;
justify-content: center;
gap: 18px;
}
.nav-links a {
color: #4478DF;
text-decoration: none;
}
.nav-links a:hover {
text-decoration: underline;
}
@media print {
.card-links,
.nav-footer {
display: none !important;
}
}
/* 窄屏(手机):矩阵改为单列堆叠 */
@media (max-width: 640px) {
.nav-wrap {
padding: 24px 16px;
}
.matrix {
grid-template-columns: 1fr;
}
.matrix-corner,
.matrix-colhead {
display: none;
}
.matrix-rowhead {
justify-content: flex-start;
padding: 8px 0 0;
}
}