File size: 2,521 Bytes
4657c70
 
 
 
 
 
071efec
 
4657c70
 
 
071efec
 
4657c70
 
071efec
 
4657c70
 
071efec
 
4657c70
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
071efec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#mainContainer {
    display: flex;
    justify-content: center; /* 水平居中 */
    max-width:500px;
    margin: 0 auto; /* 居中 */
    padding: 20px;
}

#searchBox {
    width: 150px; /* 初始宽度 */
    transition: width 0.3s; /* 宽度变化的过渡效果 */
}

#searchBox input {
    width: 100%; /* 使输入框填满整个容器 */
}

#searchBox:focus-within {
    width: 200px; /* 聚焦时的宽度 */
}

#searchButton {
    padding: 0; /* 移除内边距以减少按钮大小,使其与输入框对齐 */
    margin-left: -25px; /* 使按钮紧贴输入框 */
    background-color: transparent; /* 使按钮背景透明 */
    border: none; /* 移除边框 */
}

#resultsContainer {
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* 为搜索建议添加阴影 */
    z-index: 1000; /* 确保搜索建议在其他元素上方显示 */
    border-radius: 5px; /* 为容器添加圆角 */
    overflow: hidden; /* 防止子元素溢出容器圆角 */
    background-color: #fff; /* 为了更好的视觉效果,可能需要设置背景色 */
}

.ui.list.bordered {
    border: 1px solid rgba(34,36,38,.15); /* 添加边框 */
    box-shadow: 0 1px 2px 0 rgba(34,36,38,.15); /* 添加阴影 */
}

.ui.list{
    margin: 0;;
}

#resultsContainer .item {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 15px;
    margin-top: 5px;
    margin-bottom: 5px; /* 在项之间添加一些间隔 */
    border: none; /* 确保没有边框 */
    transition: background-color 0.3s; /* 添加背景色变化的过渡效果 */
}

#resultsContainer .item:hover {
    background-color: #e2e2e2; /* 鼠标悬浮时的背景色 */
}

#suggestionContainer {
    display: none;
}

#resultsList {
    padding: 10px;
    background-color: #0f0f0f; /* 为结果列表添加背景色 */
    border-bottom: 1pxrgb(42, 36, 36)#ddd; /* 在列表和答案之间添加一条边界线 */
}

#answerContainer {
    padding: 10px;
    background-color: #f7f7f7;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    display: none;
}

#feedbackContainer {
    margin-top: 10px;
    align-items: center;
    border-top: gray solid 1px;
    padding: 5px;
    min-height: 30px;
}

#likeButton, #dislikeButton {
    cursor: pointer;
    margin-right: 10px;
    float: left;
}

#copyButton {
    cursor: pointer;
    float: right;
}

#likeButton:hover, #dislikeButton:hover, #copyButton:hover {
    color: #007bff;
}