/* 全局样式 */ 
body { 
    font-family: Arial, sans-serif; 
    margin: 0; 
    padding: 0; 
    background-color: #f4f4f4; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    min-height: 100vh; 
} 


button:disabled { background: #ccc; }
        #status { color: #666; margin: 10px 0; }
        #result {
            padding: 15px;
            background: #f5f5f5;
            border-radius: 4px;
            margin-top: 20px;
            min-height: 60px;
        }
 
.container { 
    width: calc(100% - 40px); /* 左右各留 20px 空白 */ 
    max-width: 600px; 
    background-color: #fff; 
    border-radius: 16px; /* 增大圆角半径 */ 
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); 
    padding: 20px; 
    margin: 0 20px; /* 左右外边距 */ 
} 
 
.main-content { 
    width: 100%; 
} 
 
/* 聊天区域样式 */ 
.chat-section { 
    width: 100%; 
} 
 
.chat-section h1 { 
    text-align: center; 
    color: #333; 
    margin-bottom: 20px; 
} 
 
.chat-box { 
    height: 320px; /* 原来是400px，缩小5分之一 */
    overflow-y: auto; 
    border: 1px solid #ccc; 
    border-radius: 12px; /* 增大圆角半径 */ 
    padding: 10px; 
    margin-bottom: 10px; 
    background-color: #f9f9f9; 
} 
 
.chat-message { 
    margin-bottom: 10px; 
    padding: 8px; 
    border-radius: 12px; /* 增大圆角半径 */ 
    line-height: 1.4; 
} 
 
.user-message { 
    background-color: #e0f7fa; 
    text-align: right; 
} 
 
/* 快速链接区域样式 */ 
.quick-links { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 10px; 
    margin-bottom: 10px; 
} 
 
.quick-links a { 
    background-color: #2196f3; 
    color: #fff; 
    padding: 4px 6px; 
    border-radius: 6px; 
    text-decoration: none; 
    cursor: pointer; 
    transition: background-color 0.3s ease; 
    font-size: 12px; 
} 
 
.quick-links a:hover { 
    background-color: #1976d2; 
} 
 
/* 语音合成勾选框样式 */ 
.speech-checkbox-container { 
    display: flex; 
    justify-content: center; 
    margin-bottom: 10px; 
} 
 
.speech-checkbox { 
    display: flex; 
    align-items: center; 
} 
 
.speech-checkbox input[type="checkbox"] { 
    margin-right: 5px; 
} 
 
/* 输入区域样式 */ 
.input-area { 
    display: flex; 
    flex-direction: column; 
    width: 100%; 
} 
 
.input-wrapper { 
    display: flex; 
    gap: 10px; 
} 
 
.input-wrapper textarea { 
    flex: 1; 
    padding: 10px; 
    border: 1px solid #ccc; 
    border-radius: 12px; /* 增大圆角半径 */ 
    resize: none; 
} 
 
.input-wrapper button { 
    padding: 10px 15px; 
    border: none; 
    border-radius: 12px; /* 增大圆角半径 */ 
    background-color: #2196f3; 
    color: #fff; 
    cursor: pointer; 
    transition: background-color 0.3s ease; 
} 
 
.input-wrapper button:hover { 
    background-color: #1976d2; 
} 
 
/* 图片样式 */ 
.chat-box img { 
    margin-top: 10px; 
    border-radius: 12px; /* 增大圆角半径 */ 
} 
 
/* 媒体查询，当屏幕宽度大于 600px 时应用以下样式 */ 
@media screen and (min-width: 600px) { 
    .container { 
        max-width: 80%; /* 调整最大宽度 */ 
    } 
    .chat-box { 
        height: 400px; /* 原来是500px，缩小5分之一 */
    } 
} 
 
/* 当屏幕宽度大于 1024px 时应用以下样式 */ 
@media screen and (min-width: 1024px) { 
    .container { 
        max-width: 60%; /* 进一步调整最大宽度 */ 
    } 
    .chat-box { 
        height: 480px; /* 原来是600px，缩小5分之一 */
    } 
} 

.settings-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #4a90e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.settings-btn:hover {
    transform: rotate(30deg);
    background-color: #357abd;
}

.settings-btn i {
    color: white;
    font-size: 20px;
}

.settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: hidden;
}

.settings-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.settings-header {
    position: sticky;
    top: 0;
    background-color: white;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    z-index: 1;
}

.settings-header h2 {
    margin: 0;
    color: #333;
}

.close-settings {
    cursor: pointer;
    font-size: 24px;
    color: #666;
}

.settings-section {
    margin-bottom: 20px;
}

.settings-section h3 {
    position: sticky;
    top: 60px;
    background-color: white;
    padding: 10px 0;
    margin: 0;
    z-index: 1;
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.settings-item label {
    flex: 1;
}

.settings-item input[type="number"],
.settings-item input[type="text"] {
    width: 100px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.settings-item input[type="range"] {
    width: 200px;
}

.settings-item .value-display {
    width: 50px;
    text-align: right;
    color: #666;
}

.save-settings {
    background-color: #4a90e2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    float: right;
    margin-top: 20px;
}

.save-settings:hover {
    background-color: #357abd;
}

.clear-link {
    background-color: #f44336;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.clear-link:hover {
    background-color: #d32f2f;
}