:root {
--primary-color: #4dabf7; --primary-hover-color: #339af0; --background-color: #f8f9fa; --text-color: #495057; --border-color: #e9ecef; --shadow: 0 4px 15px rgba(0, 0, 0, 0.1); --border-radius: 16px; --transition: all 0.3s ease; }
.article-summary {
width: auto; max-width: 100%; padding: 20px;
margin-bottom: 30px;
background-color: #e0e0e0; border: 1px solid #e0e0e0; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); transition: background-color 0.3s ease, box-shadow 0.3s ease; }
.article-summary:hover {
background-color: #f0f0f0; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.article-summary h3 {
margin-top: 0;
color: #333; font-size: 1.5em;
font-weight: bold;
border-bottom: 2px solid #4CAF50; padding-bottom: 10px;
text-align: left; }
.article-summary p {
margin: 15px 0 0;
color: #666; line-height: 1.6;
font-size: 1em;
text-align: justify;
}
.source-link {
margin-top: 15px;
font-size: 0.9em;
color: #777;
text-align: left;
}
.source-link a {
color: #3498db; text-decoration: none;
border-bottom: 1px dotted #3498db;
transition: border-bottom 0.3s ease, color 0.3s ease;
}
.source-link a:hover {
border-bottom-style: solid;
color: #2196F3; } #ai-interaction-window {
width: 320px;
height: 420px; background-color: var(--background-color);
border: 1px solid var(--border-color);
border-radius: var(--border-radius);
box-shadow: var(--shadow);
position: fixed;
bottom: 20px;
right: 20px;
z-index: 10000;
transition: var(--transition);
font-family: 'Inter', sans-serif; overflow: hidden;
} @media (max-width: 600px) {
#ai-interaction-window {
display: none; }
#ai-minimized-icon {
display: block; }
} .ai-header {
background-color: var(--primary-color); color: #fff;
padding: 14px 16px;
border-radius: var(--border-radius) var(--border-radius) 0 0;
cursor: move;
display: flex;
align-items: center;
justify-content: space-between;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); } .ai-title {
margin: 0;
font-size: 16px; font-weight: 600; line-height: 1.5; color: #fff; text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1); text-align: left;
padding-left: 12px; flex: 1;
transition: color 0.3s, text-shadow 0.3s; } .ai-header .btn-container {
display: flex;
gap: 8px; } .ai-header .close-btn,
.ai-header .minimize-btn {
font-size: 14px;
cursor: pointer;
width: 28px;
height: 28px;
border-radius: 50%; background-color: rgba(255, 255, 255, 0.1); color: #fff;
display: flex;
align-items: center;
justify-content: center;
transition: var(--transition);
} .ai-header .close-btn:hover,
.ai-header .minimize-btn:hover {
background-color: rgba(255, 255, 255, 0.2); transform: scale(1.1); } .ai-header .close-btn::after {
content: '×'; font-size: 18px;
line-height: 1;
} .ai-header .minimize-btn::after {
content: '−'; font-size: 18px;
line-height: 1;
} .ai-body {
padding: 16px;
height: calc(100% - 60px); overflow-y: auto;
background-color: #fff;
} #chat-container {
height: 100%;
display: flex;
flex-direction: column;
} #chat-messages {
flex: 1;
overflow-y: auto;
padding: 10px;
border-bottom: 1px solid var(--border-color);
} .ai-message, .user-message {
padding: 12px 16px;
margin-bottom: 12px;
border-radius: 12px;
font-size: 14px;
max-width: 80%; position: relative;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ai-message {
background-color: #fff; border: 1px solid var(--border-color);
color: var(--text-color);
align-self: flex-start; box-shadow: var(--shadow);
border-radius: 12px 12px 12px 0;
}
.user-message {
background-color: var(--primary-color); color: #fff;
align-self: flex-end; box-shadow: 0 4px 12px rgba(77, 171, 247, 0.2);
border-radius: 12px 12px 0 12px;
} .user-message::after {
content: '';
position: absolute;
right: -8px;
top: 12px;
border-width: 6px 0 6px 8px;
border-color: transparent transparent transparent var(--primary-color);
}
.ai-message::before {
content: '';
position: absolute;
left: -8px;
top: 12px;
border-width: 6px 8px 6px 0;
border-color: transparent var(--border-color) transparent transparent;
} .ai-message:hover,
.user-message:hover {
transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
} .timestamp {
font-size: 0.75em;
color: #666;
margin-top: 4px;
display: block;
text-align: right;
} .input-container {
display: flex;
padding: 12px;
gap: 12px;
background-color: #fff;
border-top: 1px solid var(--border-color);
} #ai-input {
flex: 1;
padding: 12px 16px;
border: 1px solid var(--border-color);
border-radius: 12px;
font-size: 14px;
outline: none;
transition: border-color 0.3s ease, box-shadow 0.3s ease;
background-color: #fff;
}
#ai-input:focus {
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.1);
} #send-message {
padding: 12px 20px;
background-color: var(--primary-color);
color: #fff;
border: none;
border-radius: 12px;
cursor: pointer;
font-size: 14px;
transition: var(--transition);
display: flex;
align-items: center;
justify-content: center;
}
#send-message:hover {
background-color: var(--primary-hover-color);
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(77, 171, 247, 0.2);
} .loading-message {
font-style: italic;
color: #666;
text-align: center;
margin: 10px 0;
} #ai-minimized-icon {
position: fixed; bottom: 20px;
right: 20px;
cursor: pointer;
z-index: 10000;
transition: var(--transition);
display: none; }
#ai-minimized-icon img {
width: 40px;
height: 40px;
border-radius: 50%;
box-shadow: var(--shadow);
}