/* style.css - 丹纳赫/Phenomenex 风格版 */
:root {
    --danaher-blue: #002f5d; /* 丹纳赫深蓝 */
    --phx-blue: #005696;    /* Phenomenex 主蓝 */
    --phx-light-blue: #00a1e0;
    --bg-dark: #f4f7f9;     /* 改为浅色背景更符合官网专业感 */
    --card-bg: #ffffff;
    --text-main: #333333;
    --border-color: #d1d9e0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

#container {
    width: 1000px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border-radius: 4px; /* 丹纳赫风格偏硬朗，减少圆角 */
    border-top: 5px solid var(--danaher-blue); /* 顶部品牌条 */
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

#header {
    padding: 15px 25px;
    background: #fff;
    color: var(--danaher-blue);
    font-size: 1.2rem;
    font-weight: 700;
    text-align: left;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

#chatWindow {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    background: #ffffff;
}

/* 消息气泡美化 */
.msg {
    margin-bottom: 20px;
    padding: 15px 20px;
    border-radius: 2px; /* 方形气泡更显专业 */
    max-width: 85%;
    line-height: 1.6;
}

.msg.ai {
    background: #f0f4f8;
    border-left: 4px solid var(--phx-blue);
    color: #1a1a1a;
}

.msg.user {
    background: var(--phx-blue);
    color: #ffffff;
    margin-left: auto;
}

/* 输入区域 */
#inputSection {
    background: #f8fafc;
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.tool-bar {
    margin-bottom: 12px;
}

.tool-bar button, .file-label {
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--phx-blue);
    padding: 6px 15px;
    font-weight: 600;
    transition: all 0.2s;
}

.tool-bar button:hover {
    background: var(--phx-blue);
    color: #fff;
}

#sendBtn {
    background: var(--phx-light-blue);
    color: white;
    padding: 0 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 弹窗调整 */
.modal-content {
    background: #fff;
    width: 850px; /* 固定宽度确保JSME空间 */
    border-top: 4px solid var(--phx-blue);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
    color: var(--danaher-blue);
    font-weight: bold;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}