Files
gaokao-volunteer-system/admin/static/portal-ui.css
Hermes Agent 8d0ef0b842
Some checks failed
CI / pytest (Python 3.10) (push) Has been cancelled
CI / pytest (Python 3.11) (push) Has been cancelled
CI / pytest (Python 3.12) (push) Has been cancelled
frontend: 第三阶段补齐 - 数据查询+报告对比+focus-visible
新增功能:
1. /data-query 数据查询入口页:政策中心+同分段参考两个查询入口
2. /compare-reports 报告对比入口页:输入手机号选择多份报告对比
3. focus-visible CSS:所有可交互元素获得键盘焦点时显示蓝色轮廓
4. 所有新页面包含全局导航栏+返回首页+role=main

验证结果(重启服务后curl真实确认):
- /data-query: HTTP 200 
- /compare-reports: HTTP 200 
- focus-visible CSS: 5处 
- 分享/PDF/性能: 全部 
- 测试: 60 passed
2026-06-26 22:00:00 +08:00

207 lines
3.7 KiB
CSS

:root {
--portal-bg: #f3f7fb;
--portal-surface: #ffffff;
--portal-surface-soft: #f7fbff;
--portal-border: #d7e3f1;
--portal-text: #142235;
--portal-muted: #5b6b88;
--portal-primary: #1f6feb;
--portal-primary-dark: #194fb6;
--portal-primary-soft: rgba(31, 111, 235, 0.12);
--portal-success: #0f766e;
--portal-success-soft: #dff7f1;
--portal-warning: #8a5a00;
--portal-warning-soft: #fff7e6;
--portal-shadow: 0 18px 42px rgba(20, 34, 53, 0.08);
--portal-radius-xl: 24px;
--portal-radius-lg: 18px;
--portal-radius-md: 14px;
}
* {
box-sizing: border-box;
}
body {
color: var(--portal-text);
}
a {
color: var(--portal-primary);
}
a:hover {
color: var(--portal-primary-dark);
}
.portal-panel {
background: var(--portal-surface);
border: 1px solid var(--portal-border);
border-radius: var(--portal-radius-xl);
box-shadow: var(--portal-shadow);
}
.portal-eyebrow {
display: inline-flex;
padding: 6px 10px;
border-radius: 999px;
background: var(--portal-success-soft);
color: var(--portal-success);
font-size: 12px;
font-weight: 700;
letter-spacing: 0.04em;
text-transform: uppercase;
}
.portal-muted {
color: var(--portal-muted);
}
.portal-button,
.portal-button-secondary {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 46px;
padding: 0 18px;
border-radius: var(--portal-radius-md);
text-decoration: none;
font-weight: 700;
border: none;
cursor: pointer;
}
.portal-button {
background: var(--portal-primary);
color: #fff;
}
.portal-button:hover {
background: var(--portal-primary-dark);
color: #fff;
}
.portal-button-secondary {
background: #edf3ff;
color: var(--portal-primary-dark);
}
.portal-button-secondary:hover {
background: #dfeaff;
color: var(--portal-primary-dark);
}
.portal-field input,
.portal-field textarea,
.portal-field select {
width: 100%;
padding: 12px;
border-radius: 12px;
border: 1px solid #cfd7e6;
font-size: 14px;
background: #fff;
color: var(--portal-text);
}
.portal-field input:focus,
.portal-field textarea:focus,
.portal-field select:focus {
outline: none;
border-color: var(--portal-primary);
box-shadow: 0 0 0 4px var(--portal-primary-soft);
}
.portal-helper {
color: var(--portal-muted);
font-size: 12px;
line-height: 1.6;
}
.portal-notice {
padding: 16px 18px;
border-radius: 16px;
background: var(--portal-warning-soft);
border: 1px solid #f4d39b;
color: var(--portal-warning);
line-height: 1.7;
}
.portal-status-grid {
display: grid;
gap: 12px;
}
.portal-status-item {
padding: 14px 16px;
border-radius: 16px;
background: var(--portal-surface-soft);
border: 1px solid var(--portal-border);
}
.global-nav {
position: sticky;
top: 0;
z-index: 100;
background: rgba(14,26,43,.92);
backdrop-filter: blur(12px);
border-bottom: 1px solid rgba(255,255,255,.08);
padding: 12px 20px;
}
.global-nav-inner {
max-width: 1180px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
gap: 16px;
}
.global-nav-brand {
font-size: 18px;
font-weight: 700;
color: #fff;
text-decoration: none;
}
.global-nav-links {
display: flex;
gap: 20px;
align-items: center;
}
.global-nav-link {
color: #b8c8e4;
text-decoration: none;
font-size: 14px;
font-weight: 500;
}
.global-nav-link:hover {
color: #fff;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
outline: 2px solid var(--portal-primary);
outline-offset: 2px;
}
@media (max-width: 768px) {
.global-nav {
padding: 10px 14px;
}
.global-nav-brand {
font-size: 16px;
}
.global-nav-links {
gap: 12px;
}
.global-nav-link {
font-size: 13px;
}
}