
:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --ai-bubble: #f0f4ff;
    --user-bubble: #0037ff;
    --text-dark: #2b2d42;
    --text-light: #f8f9fa;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.chat-container {
    max-width: 800px;
    margin: 20px auto;
    background: transparent;
    border-radius: 15px;
    margin-top: 100px;
}

.chat-header {
    display: flex;
    align-items: center;
    padding: 20px;
    color: white;
}

.ai-avatar {
    font-size: 3rem;
    margin-right: 15px;
    color: white;
}

.chat-title h1 {
    font-size: 1.7rem;
    margin-bottom: 5px;
}

.chat-title p {
    font-size: 2rem;
    opacity: 0.9;
}

.chat-messages {
    padding: 20px;
    overflow-y: auto;
}

.message {
    display: flex;
    margin-bottom: 20px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.message-content {
    max-width: 70%;
}

.message p {
    padding: 12px 15px;
    border-radius: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.ai-message .message-content p {
    background-color: var(--ai-bubble);
    color: var(--text-dark);
    border-top-left-radius: 5px;
}

.user-message {
    justify-content: flex-end;
}

.user-message .message-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.user-message .message-content p {
    background-color: var(--user-bubble);
    color: white;
    border-top-right-radius: 5px;
}

.message-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.option-btn {
    padding: 8px 12px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.option-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.custom-input-container {
    display: flex;
    width: 100%;
    margin-top: 8px;
}

.custom-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 16px 0 0 16px;
    outline: none;
}

.custom-submit {
    padding: 8px 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 16px 16px 0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.custom-submit:hover {
    background-color: var(--secondary-color);
}

.loading-indicator {
    padding: 15px 20px;
    display: none;
    align-items: center;
    border-top: 1px solid #eee;
}

.typing-animation {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.typing-animation span {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: inline-block;
    margin: 0 2px;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-animation span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-animation span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-5px); }
}

.result-area {
    padding: 20px;
    border-top: 1px solid #eee;
}

.result-content {
    background-color: var(--ai-bubble);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    white-space: pre-line;
}

.copy-btn, .restart-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
    transition: all 0.3s;
}

.copy-btn {
    background-color: var(--primary-color);
    color: white;
}

.copy-btn:hover {
    background-color: var(--secondary-color);
}

.restart-btn {
    background-color: #f1f1f1;
    color: var(--text-dark);
}

.restart-btn:hover {
    background-color: #e1e1e1;
}

.copy-btn i, .restart-btn i {
    margin-right: 5px;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .chat-container {
        margin: 0;
        border-radius: 0;
        height: 100vh;
    }
    
    .chat-messages {
        height: calc(100vh - 280px);
    }
    
    .message-content {
        max-width: 80%;
    }
    
    .message-options {
        flex-direction: column;
    }
    
    .custom-input-container {
        flex-direction: column;
    }
    
    .custom-input {
        border-radius: 16px;
        margin-bottom: 8px;
    }
    
    .custom-submit {
        border-radius: 16px;
        width: 100%;
    }
}

::-webkit-scrollbar {
    width: 0;
}

.model_loader{
    position: fixed;
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    background: #000000a4;
  }
  
  .loader {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: not-allowed;
    scale: 0.7;
    margin: 270px auto;
  }
  
  .central {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 10em;
    height: 10em;
    border-radius: 50%;
    box-shadow: 0.5em 1em 1em blueviolet,
      -0.5em 0.5em 1em blue,
      0.5em -0.5em 1em purple,
      -0.5em -0.5em 1em cyan;
  }
  
  .external-shadow {
    width: 10em;
    height: 10em;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0.5em 0.5em 3em blueviolet,
      -0.5em 0.5em 3em blue,
      0.5em -0.5em 3em purple,
      -0.5em -0.5em 3em cyan;
    z-index: 999;
    animation: rotate 3s linear infinite;
    background-color: #000000;
  }
  
  .intern {
    position: absolute;
    color: white;
    z-index: 9999;
  }
  
  .intern::before {
    content: "100%";
    animation: percent 18.6s ease-in-out infinite;
  }
  
  @keyframes rotate {
    0% {
      transform: rotate(0deg);
    }
  
    50% {
      transform: rotate(180deg);
    }
  
    100% {
      transform: rotate(360deg);
    }
  }
  
  @keyframes percent {
    0% {
      content: '0%';
    }
  
    25% {
      content: '25%';
    }
  
    33% {
      content: '33%';
    }
  
    42% {
      content: '42%';
    }
  
    51% {
      content: '51%';
    }
  
    67% {
      content: '67%';
    }
  
    74% {
      content: '74%';
    }
  
    75% {
      content: '75%';
    }
  
    86% {
      content: '86%';
    }
  
    95% {
      content: '95%';
    }
  
    98% {
      content: '98%';
    }
  
    99% {
      content: '99%';
    }
  }
