kuaiying_wx/pages/aitools/aitools.wxss

414 lines
6.6 KiB
Plaintext
Raw Permalink Normal View History

2025-03-04 15:25:38 +08:00
.container,page {
background-color: #222238;
}
.container {
border-top: 1px solid hsla(0,31%,87%,.5);
box-sizing: border-box;
color: #fff;
padding: 10px 10px 61px;
}
.navbar {
background: linear-gradient(180deg,#8d72d2,#7183f3);
border-radius: 5px;
display: flex;
justify-content: space-between;
width: 300px;
}
.nav-item {
color: #fff;
flex: 1;
padding: 5px 10px;
text-align: center;
}
.nav-item.active {
background: linear-gradient(90deg,#6949bb,#4d65fd);
border-bottom: 3px solid #d9d4e4;
border-radius: 5px;
}
.description-text {
color: #a790e2;
font-size: 12px;
}
.input-container {
margin: 10px 0;
position: relative;
width: 100%;
}
.input-box {
background-color: #333;
border: none;
color: #fff;
height: 150px;
}
.char-count {
bottom: 10px;
color: #ccc;
position: absolute;
right: 10px;
}
.optimize-button {
background: linear-gradient(90deg,#6949bb,#4d65fd);
border-radius: 5px;
bottom: 3px;
font-size: 13px;
left: 3px;
padding: 5px;
position: absolute;
text-align: center;
z-index: 9999;
}
.platform-selector {
background-color: #333;
border-radius: 5px;
margin-bottom: 20px;
padding: 10px;
}
.platform-text {
font-weight: 700;
}
.platform-dropdown {
margin-top: 10px;
}
.size-selector,.style-selector {
margin-bottom: 20px;
width: 100%;
}
.size-text,.style-text {
font-weight: 700;
margin-bottom: 10px;
}
.size-options,.style-options {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.size-option,.style-option {
background-color: #333;
border-radius: 5px;
box-shadow: 1px 3px 3px 1px rgba(0,0,0,.3);
color: #fff;
flex: 1;
font-size: 13px;
margin-bottom: 10px;
margin-right: 10px;
padding: 10px;
text-align: center;
transition: all .3s;
white-space: nowrap;
}
.size-option.active,.style-option.active {
background-color: #4a90e2;
}
.size-option:last-child,.style-option:last-child {
margin-right: 0;
}
.enhance-container {
align-items: center;
display: flex;
width: 100%;
}
.enhance-text {
font-weight: 700;
margin-right: 10px;
}
.enhance-slider {
flex: 1;
}
.generate-button {
background: linear-gradient(90deg,#6949bb,#4d65fd);
border: none;
border-radius: 5px;
color: #fff;
margin: 10px auto;
padding: 5px;
text-align: center;
width: 150px;
}
.full-container {
align-items: center;
display: flex;
flex-direction: column;
width: 100%;
}
.upload-container {
background-color: #333;
border: 1px dashed #666;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0,0,0,.1);
cursor: pointer;
height: 250px;
margin-top: 15px;
max-width: 400px;
width: 100%;
}
.upload-wrap {
align-items: center;
display: flex;
flex-direction: column;
height: 250px;
justify-content: center;
}
.upload-pic {
height: 100%;
width: 100%;
}
.upload-icon {
height: 50px;
margin-bottom: 10px;
width: 50px;
}
.upload-text {
color: #999;
font-size: 14px;
margin-bottom: 5px;
}
.upload-link {
color: #4a90e2;
text-decoration: underline;
}
.upload-info {
color: #666;
font-size: 12px;
}
.img-input-container {
margin-top: 10px;
max-width: 400px;
min-height: 200px;
position: relative;
width: 100%;
}
.input-box {
border: 1px solid #ccc;
border-radius: 5px;
box-sizing: border-box;
font-size: 14px;
min-height: 200px;
padding: 10px;
resize: none;
width: 100%;
}
.char-count {
color: #999;
font-size: 12px;
margin-top: 5px;
text-align: right;
}
.chat-box {
display: flex;
flex-direction: column;
height: calc(100vh - 127px);
margin-top: 10px;
}
.chat-box,.role-switch {
position: relative;
width: 100%;
}
.role-switch {
margin: 0 auto;
text-align: center;
}
.role-button {
align-items: center;
background: linear-gradient(180deg,#2b2b49,#26263a);
border: none;
border-radius: 5px;
box-shadow: 0 4px 6px rgba(0,0,0,.3),0 1px 3px rgba(0,0,0,.08);
color: #fff;
cursor: pointer;
font-size: 16px;
width: 100%;
}
.role-icon {
height: 16px;
margin-left: 5px;
vertical-align: middle;
width: 16px;
}
.role-dropdown {
background: linear-gradient(180deg,#2b2b49,#26263a);
border-radius: 5px;
box-shadow: 0 4px 8px rgba(0,0,0,.3);
left: 50%;
margin-top: 5px;
position: absolute;
top: 100%;
transform: translateX(-50%);
z-index: 1000;
}
.role-option {
border-bottom: 1px solid #b39494;
color: #fff;
cursor: pointer;
padding: 10px;
}
.role-option:hover {
background: #444;
}
.chat-window {
box-sizing: border-box;
flex: 1;
overflow-y: auto;
padding: 10px;
}
.message {
display: flex;
margin-bottom: 10px;
margin-top: 10px;
}
.message.user {
flex-direction: row-reverse;
}
.message .avatar {
border-radius: 20px;
height: 40px;
margin: 0 3px;
width: 40px;
}
.bubble {
border-radius: 10px;
box-shadow: 0 0 5px rgba(0,0,0,.5);
color: #d6d3dd;
max-width: 70%;
padding: 10px;
}
.message.user .bubble {
background: #6949bb;
color: #fff;
}
.message.ai .bubble {
background: #505579;
color: #fff;
}
.username {
color: #888;
font-size: 12px;
}
.content {
font-size: 14px;
margin-top: 5px;
}
.input-area {
background-color: #222238;
box-sizing: border-box;
display: flex;
padding: 10px;
width: 100%;
height: 40px;
}
.input-field {
border: 1px solid #ccc;
border-radius: 5px;
box-sizing: border-box;
flex: 1;
min-height: 40px;
padding: 8px;
}
.send-button {
background: linear-gradient(90deg,#6949bb,#4d65fd);
border: none;
border-radius: 5px;
box-sizing: border-box;
color: #fff;
font-size: 16px;
font-weight: 700;
height: 40px;
line-height: 40px;
margin-left: 10px;
padding: 0 20px;
}
.buttom {
background-color: initial;
height: 60px;
width: 100%;
}
.loading-container {
align-items: center;
display: flex;
height: 100vh;
justify-content: center;
}
.loading-dot {
animation: pulse .8s infinite alternate;
background-color: #007bff;
border-radius: 50%;
height: 18px;
width: 18px;
}
@-webkit-keyframes pulse {
0% {
transform: scale(1);
}
100% {
transform: scale(1.4);
}
}
@keyframes pulse {
0% {
transform: scale(1);
}
100% {
transform: scale(1.4);
}
}