567 lines
9.4 KiB
CSS
567 lines
9.4 KiB
CSS
/* 全局样式 */
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Arial', sans-serif;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
color: #333;
|
|
line-height: 1.6;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
}
|
|
|
|
/* 通用按钮样式 */
|
|
.btn {
|
|
display: inline-block;
|
|
padding: 10px 20px;
|
|
border: none;
|
|
border-radius: 5px;
|
|
font-size: 16px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
text-decoration: none;
|
|
text-align: center;
|
|
margin: 5px;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: linear-gradient(45deg, #667eea, #764ba2);
|
|
color: white;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 5px 15px rgba(0,0,0,0.2);
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: #e0e0e0;
|
|
color: #333;
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background: #bdbdbd;
|
|
}
|
|
|
|
/* 头部样式 */
|
|
header {
|
|
background: rgba(255,255,255,0.95);
|
|
padding: 20px;
|
|
border-radius: 10px;
|
|
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
|
|
margin-bottom: 30px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
header h1 {
|
|
font-size: 2.5rem;
|
|
background: linear-gradient(45deg, #667eea, #764ba2);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
}
|
|
|
|
.subtitle {
|
|
font-size: 1.2rem;
|
|
color: #666;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
/* 首页英雄区域 */
|
|
.hero {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 40px;
|
|
background: rgba(255,255,255,0.95);
|
|
padding: 40px;
|
|
border-radius: 15px;
|
|
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.hero-content {
|
|
flex: 1;
|
|
}
|
|
|
|
.hero-content h2 {
|
|
font-size: 2rem;
|
|
margin-bottom: 20px;
|
|
color: #333;
|
|
}
|
|
|
|
.hero-content p {
|
|
font-size: 1.1rem;
|
|
margin-bottom: 30px;
|
|
color: #666;
|
|
}
|
|
|
|
.features {
|
|
list-style: none;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.features li {
|
|
padding: 10px 0;
|
|
font-size: 1.1rem;
|
|
color: #555;
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
|
|
.features li:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
/* 面试流程图解 */
|
|
.hero-image {
|
|
flex: 1;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.interview-illustration {
|
|
position: relative;
|
|
width: 300px;
|
|
height: 200px;
|
|
}
|
|
|
|
.person, .ai-robot {
|
|
width: 80px;
|
|
height: 80px;
|
|
border-radius: 50%;
|
|
position: absolute;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.person {
|
|
background: #667eea;
|
|
left: 0;
|
|
bottom: 0;
|
|
}
|
|
|
|
.ai-robot {
|
|
background: #4ecdc4;
|
|
right: 0;
|
|
bottom: 0;
|
|
}
|
|
|
|
.chat-bubbles {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
width: 100%;
|
|
}
|
|
|
|
.bubble {
|
|
padding: 15px;
|
|
border-radius: 20px;
|
|
margin: 10px 0;
|
|
max-width: 180px;
|
|
position: relative;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.person-bubble {
|
|
background: #667eea;
|
|
color: white;
|
|
margin-left: 0;
|
|
}
|
|
|
|
.person-bubble::after {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: -8px;
|
|
left: 20px;
|
|
border-width: 8px 8px 0;
|
|
border-style: solid;
|
|
border-color: #667eea transparent;
|
|
}
|
|
|
|
.ai-bubble {
|
|
background: #4ecdc4;
|
|
color: white;
|
|
margin-left: auto;
|
|
}
|
|
|
|
.ai-bubble::after {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: -8px;
|
|
right: 20px;
|
|
border-width: 8px 8px 0;
|
|
border-style: solid;
|
|
border-color: #4ecdc4 transparent;
|
|
}
|
|
|
|
/* 面试流程页面布局 */
|
|
.interview-container {
|
|
display: flex;
|
|
gap: 20px;
|
|
background: rgba(255,255,255,0.95);
|
|
padding: 20px;
|
|
border-radius: 15px;
|
|
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
/* 侧边栏样式 */
|
|
.process-sidebar {
|
|
width: 300px;
|
|
background: #f8f9fa;
|
|
padding: 20px;
|
|
border-radius: 10px;
|
|
height: fit-content;
|
|
position: sticky;
|
|
top: 20px;
|
|
}
|
|
|
|
.process-sidebar h2 {
|
|
margin-bottom: 20px;
|
|
color: #333;
|
|
font-size: 1.3rem;
|
|
}
|
|
|
|
.process-step {
|
|
display: flex;
|
|
gap: 15px;
|
|
padding: 15px;
|
|
border-radius: 8px;
|
|
margin-bottom: 10px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
background: white;
|
|
border: 2px solid transparent;
|
|
}
|
|
|
|
.process-step:hover {
|
|
transform: translateX(5px);
|
|
box-shadow: 0 5px 15px rgba(0,0,0,0.08);
|
|
}
|
|
|
|
.process-step.active {
|
|
border-color: #667eea;
|
|
background: #f0f4ff;
|
|
}
|
|
|
|
.step-number {
|
|
width: 30px;
|
|
height: 30px;
|
|
border-radius: 50%;
|
|
background: #667eea;
|
|
color: white;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
font-weight: bold;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.process-step.active .step-number {
|
|
background: white;
|
|
color: #667eea;
|
|
border: 2px solid #667eea;
|
|
}
|
|
|
|
.step-content h3 {
|
|
font-size: 1.1rem;
|
|
margin-bottom: 5px;
|
|
color: #333;
|
|
}
|
|
|
|
.step-content p {
|
|
font-size: 0.9rem;
|
|
color: #666;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.step-duration {
|
|
font-size: 0.8rem;
|
|
color: #999;
|
|
}
|
|
|
|
/* 主面试区域 */
|
|
.interview-main {
|
|
flex: 1;
|
|
background: white;
|
|
padding: 30px;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.interview-stage {
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.interview-stage.hidden {
|
|
display: none;
|
|
}
|
|
|
|
#current-question-title {
|
|
font-size: 1.8rem;
|
|
margin-bottom: 15px;
|
|
color: #333;
|
|
}
|
|
|
|
#current-question-description {
|
|
font-size: 1.1rem;
|
|
margin-bottom: 30px;
|
|
color: #666;
|
|
line-height: 1.8;
|
|
}
|
|
|
|
/* 回答输入区域 */
|
|
.answer-input textarea {
|
|
width: 100%;
|
|
height: 200px;
|
|
padding: 15px;
|
|
border: 2px solid #ddd;
|
|
border-radius: 10px;
|
|
font-size: 1.1rem;
|
|
font-family: inherit;
|
|
resize: vertical;
|
|
margin-bottom: 20px;
|
|
transition: border-color 0.3s ease;
|
|
}
|
|
|
|
.answer-input textarea:focus {
|
|
outline: none;
|
|
border-color: #667eea;
|
|
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
|
|
}
|
|
|
|
.input-actions {
|
|
display: flex;
|
|
gap: 15px;
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
/* AI分析结果区域 */
|
|
.analysis-results {
|
|
background: #f8f9fa;
|
|
padding: 30px;
|
|
border-radius: 10px;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.score-card {
|
|
text-align: center;
|
|
background: white;
|
|
padding: 30px;
|
|
border-radius: 10px;
|
|
margin-bottom: 30px;
|
|
box-shadow: 0 5px 15px rgba(0,0,0,0.05);
|
|
}
|
|
|
|
.score-card h3 {
|
|
font-size: 1.2rem;
|
|
color: #666;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.score-value {
|
|
font-size: 3rem;
|
|
font-weight: bold;
|
|
background: linear-gradient(45deg, #667eea, #764ba2);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
}
|
|
|
|
.analysis-details h3, .suggestions h3 {
|
|
font-size: 1.3rem;
|
|
margin-bottom: 20px;
|
|
color: #333;
|
|
border-bottom: 2px solid #eee;
|
|
padding-bottom: 10px;
|
|
}
|
|
|
|
.progress-bars {
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.progress-bar {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.progress-bar label {
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
font-weight: bold;
|
|
color: #555;
|
|
}
|
|
|
|
.progress {
|
|
height: 15px;
|
|
background: #e0e0e0;
|
|
border-radius: 10px;
|
|
overflow: hidden;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.progress-fill {
|
|
height: 100%;
|
|
background: linear-gradient(90deg, #4ecdc4, #45b7aa);
|
|
border-radius: 10px;
|
|
transition: width 0.5s ease;
|
|
}
|
|
|
|
.progress-value {
|
|
font-size: 0.9rem;
|
|
color: #666;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.suggestions ul {
|
|
list-style: none;
|
|
}
|
|
|
|
.suggestions li {
|
|
padding: 12px 20px;
|
|
margin-bottom: 10px;
|
|
background: white;
|
|
border-left: 4px solid #667eea;
|
|
border-radius: 5px;
|
|
color: #555;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.suggestions li:hover {
|
|
transform: translateX(5px);
|
|
box-shadow: 0 5px 15px rgba(0,0,0,0.05);
|
|
}
|
|
|
|
/* 面试结果弹窗 */
|
|
.modal {
|
|
display: flex;
|
|
position: fixed;
|
|
z-index: 1000;
|
|
left: 0;
|
|
top: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0,0,0,0.5);
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.modal.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.modal-content {
|
|
background: white;
|
|
padding: 40px;
|
|
border-radius: 15px;
|
|
width: 80%;
|
|
max-width: 600px;
|
|
max-height: 80vh;
|
|
overflow-y: auto;
|
|
position: relative;
|
|
box-shadow: 0 20px 40px rgba(0,0,0,0.15);
|
|
}
|
|
|
|
.close {
|
|
position: absolute;
|
|
right: 20px;
|
|
top: 20px;
|
|
font-size: 28px;
|
|
font-weight: bold;
|
|
color: #aaa;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.close:hover {
|
|
color: #333;
|
|
}
|
|
|
|
/* 页脚 */
|
|
footer {
|
|
margin-top: 40px;
|
|
padding: 20px;
|
|
text-align: center;
|
|
background: rgba(255,255,255,0.95);
|
|
border-radius: 10px;
|
|
color: #666;
|
|
}
|
|
|
|
/* 响应式设计 */
|
|
@media (max-width: 968px) {
|
|
.hero {
|
|
flex-direction: column;
|
|
text-align: center;
|
|
}
|
|
|
|
.interview-container {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.process-sidebar {
|
|
width: 100%;
|
|
position: static;
|
|
}
|
|
|
|
.input-actions {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.input-actions .btn {
|
|
width: 100%;
|
|
margin: 5px 0;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
header {
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
text-align: center;
|
|
}
|
|
|
|
header h1 {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.hero {
|
|
padding: 20px;
|
|
}
|
|
|
|
.hero-content h2 {
|
|
font-size: 1.6rem;
|
|
}
|
|
|
|
.interview-main {
|
|
padding: 20px;
|
|
}
|
|
|
|
#current-question-title {
|
|
font-size: 1.5rem;
|
|
}
|
|
}
|
|
|
|
/* 动画效果 */
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(20px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.hero, .interview-stage, .process-step {
|
|
animation: fadeIn 0.5s ease-out;
|
|
} |