Files
aiData/static/css/degree.css
HuangHai 34501faafb 'commit'
2026-01-20 08:09:13 +08:00

422 lines
9.3 KiB
CSS

body {
background: radial-gradient(circle at top, #1e293b 0, #020617 55%, #000 100%);
color: #e5e7eb;
}
.header {
background: rgba(15, 23, 42, 0.95);
box-shadow: 0 10px 30px rgba(15, 23, 42, 0.8);
border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}
.logo {
color: #e5e7eb;
}
.degree-container {
max-width: 1000px;
margin: 40px auto;
padding: 0 20px;
}
.query-section {
background: rgba(15, 23, 42, 0.96);
border-radius: 12px;
padding: 30px;
box-shadow: 0 24px 60px rgba(15, 23, 42, 0.9);
margin-bottom: 30px;
text-align: center;
}
.page-title {
font-size: 32px;
background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
margin-bottom: 16px;
font-weight: 700;
letter-spacing: -0.025em;
}
.page-subtitle {
margin-bottom: 32px;
color: #94a3b8;
font-size: 16px;
opacity: 0.9;
}
.input-wrapper {
max-width: 700px;
margin: 0 auto;
position: relative;
}
/* 搜索框样式优化 */
.search-input.el-input {
--el-input-border-color: rgba(148, 163, 184, 0.5);
--el-input-hover-border-color: rgba(56, 189, 248, 0.9);
--el-input-focus-border-color: rgba(56, 189, 248, 0.9);
--el-input-bg-color: rgba(15, 23, 42, 0.9);
--el-input-text-color: #e5e7eb;
}
.search-input .el-input__wrapper {
padding-left: 20px;
padding-right: 20px;
box-shadow: 0 2px 18px rgba(15, 23, 42, 0.6);
background-color: rgba(15, 23, 42, 0.9);
border: 1px solid rgba(148, 163, 184, 0.5);
transition: all 0.3s ease;
}
.search-input.el-input-group--append .el-input__wrapper {
border-radius: 24px 0 0 24px;
border-right: none;
}
.search-input:not(.el-input-group--append) .el-input__wrapper {
border-radius: 24px;
}
.search-input .el-input-group__append {
background-color: rgba(56, 189, 248, 0.9);
border: 1px solid rgba(56, 189, 248, 0.9);
border-left: none;
border-radius: 0 24px 24px 0;
padding: 0;
box-shadow: 0 2px 18px rgba(15, 23, 42, 0.6);
}
.search-input .el-input-group__append .el-button,
.search-input .el-input-group__append .el-button.el-button--primary {
border: none;
margin: 0;
padding: 0 30px;
height: 48px;
color: #fff;
background-color: transparent;
font-weight: 600;
font-size: 16px;
transition: all 0.2s;
border-radius: 0;
}
.search-input .el-input-group__append .el-button:hover,
.search-input .el-input-group__append .el-button.el-button--primary:hover {
background-color: rgba(14, 165, 233, 1);
color: #fff;
}
.search-input .el-input-group__append .el-button:active {
transform: scale(0.98);
}
.search-input .el-input__wrapper:hover,
.search-input .el-input__wrapper.is-focus {
box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.9), 0 20px 40px rgba(15, 23, 42, 0.9);
border-color: rgba(56, 189, 248, 0.9);
z-index: 1;
}
.search-input .el-input-group__append:hover {
border-color: rgba(56, 189, 248, 0.9);
}
.search-input .el-input__inner {
height: 48px;
font-size: 16px;
color: #e5e7eb;
}
.search-input .el-input__inner::placeholder {
color: rgba(148, 163, 184, 0.8);
}
.example-tags {
margin-top: 16px;
display: flex;
justify-content: center;
gap: 10px;
flex-wrap: wrap;
}
.example-tag {
cursor: pointer;
transition: all 0.2s;
border-color: rgba(148, 163, 184, 0.6);
color: #cbd5f5;
background-color: rgba(15, 23, 42, 0.8);
}
.example-tag:hover {
transform: translateY(-2px);
border-color: rgba(56, 189, 248, 0.9);
color: #e0f2fe;
background-color: rgba(15, 23, 42, 1);
}
.result-section {
background: rgba(15, 23, 42, 0.96);
border-radius: 12px;
padding: 30px;
box-shadow: 0 24px 60px rgba(15, 23, 42, 0.9);
min-height: 200px;
}
.result-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 20px;
border-bottom: 1px solid #eee;
padding-bottom: 15px;
}
.result-title {
font-size: 18px;
font-weight: 600;
color: #e5e7eb;
display: flex;
align-items: center;
gap: 8px;
}
.markdown-body {
font-size: 16px;
line-height: 1.7;
color: #e5e7eb;
}
.markdown-body table {
width: 100%;
border-collapse: collapse;
margin: 16px 0;
}
.markdown-body th,
.markdown-body td {
padding: 12px;
border: 1px solid rgba(51, 65, 85, 0.9);
}
.markdown-body th {
background-color: rgba(30, 64, 175, 0.95);
font-weight: 600;
}
.markdown-body tr:nth-child(even) {
background-color: rgba(15, 23, 42, 0.9);
}
.loading-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 40px 0;
color: rgba(148, 163, 184, 0.9);
}
/* Cursor blink animation for streaming effect */
.cursor-blink {
display: inline-block;
width: 2px;
height: 1em;
background-color: #38bdf8;
vertical-align: text-bottom;
animation: blink 1s step-end infinite;
}
@keyframes blink {
0%, 100% { opacity: 1; }
50% { opacity: 0; }
}
/* 二维码容器 */
.qr-sidebar {
position: fixed;
right: 20px;
bottom: 20px;
background: rgba(15, 23, 42, 0.95);
border: 1px solid rgba(148, 163, 184, 0.25);
border-radius: 12px;
padding: 16px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
z-index: 1000;
text-align: center;
transition: all 0.3s ease;
box-sizing: border-box;
}
.qr-sidebar:hover {
transform: translateY(-5px);
border-color: rgba(56, 189, 248, 0.5);
background: rgba(15, 23, 42, 1);
}
.qr-code {
width: 128px;
height: 128px;
background: #fff;
padding: 8px;
border-radius: 8px;
margin-bottom: 10px;
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
overflow: hidden;
}
.qr-code canvas, .qr-code img {
max-width: 100% !important;
max-height: 100% !important;
height: auto !important;
display: block;
}
.qr-text {
font-size: 13px;
font-weight: 500;
color: #94a3b8;
margin: 0;
letter-spacing: 0.5px;
}
/* 响应式调整 */
@media screen and (max-width: 1200px) {
.qr-sidebar {
display: none;
}
}
/* ECharts 图表容器 */
.echarts-container {
width: 100%;
height: 400px;
margin: 24px 0;
background: rgba(15, 23, 42, 0.4);
border: 1px solid rgba(56, 189, 248, 0.1);
border-radius: 12px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
overflow: hidden;
transition: all 0.3s ease;
}
.echarts-container:hover {
border-color: rgba(56, 189, 248, 0.3);
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
@media (max-width: 768px) {
.echarts-container {
height: 300px;
margin: 16px 0;
padding: 10px !important;
}
.degree-container {
margin-top: 20px !important;
padding: 0 15px;
}
.query-section {
padding: 20px 10px;
}
.page-title {
font-size: 22px;
margin-bottom: 10px;
}
.page-subtitle {
font-size: 14px;
margin-bottom: 20px;
}
.result-section {
padding: 15px;
}
.input-wrapper {
max-width: 100%;
}
.search-input .el-input__inner {
height: 40px;
font-size: 14px;
}
.search-input .el-input-group__append .el-button {
padding: 0 12px;
height: 40px;
font-size: 14px;
}
.example-tags {
gap: 6px;
}
.example-tag {
font-size: 12px;
padding: 0 8px;
}
.result-section {
padding: 15px;
margin-top: 20px;
}
.markdown-body {
font-size: 14px;
}
.markdown-body table {
display: block;
width: 100%;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
margin: 16px 0;
border-collapse: collapse;
/* 增加一个细小的滚动条样式,提示可以滚动 */
}
.markdown-body table::-webkit-scrollbar {
height: 4px;
}
.markdown-body table::-webkit-scrollbar-thumb {
background: rgba(56, 189, 248, 0.5);
border-radius: 2px;
}
.markdown-body th,
.markdown-body td {
white-space: nowrap;
padding: 10px 15px;
font-size: 13px;
min-width: 100px;
}
/* 手机端首列固定 */
.markdown-body table tr th:first-child,
.markdown-body table tr td:first-child {
position: sticky;
left: 0;
z-index: 2;
box-shadow: 2px 0 5px rgba(0,0,0,0.3);
}
.markdown-body table tr th:first-child {
background-color: #1e40af !important; /* 统一使用深蓝色 */
}
.markdown-body table tr:nth-child(odd) td:first-child {
background-color: #0f172a !important; /* 与容器背景一致 */
}
.markdown-body table tr:nth-child(even) td:first-child {
background-color: #1e293b !important; /* 稍亮的条纹背景 */
}
}