body {
    background-color: #f8f9fa;
    padding: 2rem 0;
}

.prompt-maker-tool {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 2rem;
}

.prompt-maker-tool h2 {
    margin-bottom: 0.5rem;
    color: #333;
}

/* 提示词模板区域 */
.prompt-templates {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
}

.prompt-templates h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
}

.template-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.template-btn {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    text-align: left;
    transition: all 0.2s;
    cursor: pointer;
}

.template-btn:hover {
    background: #f0f7ff;
    border-color: #90c2ff;
    transform: translateY(-2px);
}

.reset-container {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

/* 聊天区域 */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 70vh;
    background: white;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.welcome-message {
    background: #f0f7ff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.welcome-message h4 {
    color: #0056b3;
    margin-bottom: 1rem;
}

.welcome-message ul {
    padding-left: 1.5rem;
}

.message {
    margin-bottom: 1.5rem;
    max-width: 70%;
    position: relative;
}

.message.user-message {
    margin-left: auto;
}

.message-content {
    padding: 1rem;
    border-radius: 12px;
    word-wrap: break-word;
    width: auto;
    display: inline-block;
    max-width: 100%;
}

.user-message .message-content {
    background: #0d6efd;
    color: white;
    border-top-right-radius: 0;
    float: right;
}

.assistant-message .message-content {
    background: #f0f0f0;
    border-top-left-radius: 0;
    float: left;
}

.message::after {
    content: "";
    display: table;
    clear: both;
}

.message-markdown {
    overflow-x: auto;
    max-width: 100%;
}

.message-markdown pre {
    white-space: pre-wrap;
    word-break: break-word;
    max-width: 100%;
}

.message-markdown code {
    background: rgba(0, 0, 0, 0.05);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.message-markdown pre code {
    background: transparent;
    padding: 0;
}

.message-markdown img {
    max-width: 100%;
    border-radius: 8px;
}

.message-markdown table {
    border-collapse: collapse;
    width: 100%;
    margin: 1rem 0;
}

.message-markdown th, 
.message-markdown td {
    border: 1px solid #ddd;
    padding: 0.5rem;
}

.message-markdown th {
    background-color: #f2f2f2;
}

.chat-input {
    display: flex;
    padding: 1rem;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.chat-input textarea {
    flex: 1;
    resize: none;
    height: 80px;
    margin-right: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
}

.chat-input button {
    height: 80px;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    font-size: 1rem;
}

.chat-input button i {
    margin-right: 0.5rem;
}

/* 模板弹窗 */
.modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .prompt-templates {
        margin-bottom: 1.5rem;
        height: auto;
    }
    
    .chat-container {
        height: 60vh;
    }
    
    .message {
        max-width: 85%;
    }
}

/* 复制按钮 */
.copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    cursor: pointer;
    display: none;
    z-index: 10;
}

.message-content:hover .copy-btn {
    display: block;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 1);
}

/* 代码块样式 */
.hljs {
    background: #f6f8fa;
    border-radius: 6px;
} 