/* 全局样式 */
:root {
    --primary-color: #1a4c7a;
    --secondary-color: #2d6a9f;
    --accent-color: #f39c12;
    --text-color: #333;
    --light-color: #f5f5f5;
    --dark-color: #2c3e50;
    --border-color: #ddd;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f8f9fa;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 20px 0;
    box-shadow: var(--shadow);
}

.logo {
    display: flex;
    align-items: center;
}

#company-logo {
    height: 50px;
    margin-right: 15px;
}

header h1 {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 1px;
}

header h2 {
    font-size: 20px;
    font-weight: normal;
    margin-top: 5px;
    opacity: 0.9;
}

/* 主体内容样式 */
main {
    padding: 40px 0;
}

.service-intro {
    text-align: center;
    margin-bottom: 40px;
}

.service-intro h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.service-intro p {
    font-size: 16px;
    color: var(--dark-color);
    max-width: 700px;
    margin: 0 auto;
}

/* 聊天机器人容器样式 */
.chatbot-container {
    display: flex;
    flex-direction: column;
    max-width: 900px;
    margin: 0 auto;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

/* Tab切换样式 */
.chatbot-tabs {
    display: flex;
    background-color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
}

.tab-button {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
    outline: none;
}

.tab-button.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.tab-button:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.tab-button.active::after {
    width: 80%;
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 8px;
}

.status-indicator.online {
    background-color: #2ecc71;
    box-shadow: 0 0 5px #2ecc71;
}

/* 聊天内容区域 */
.chatbot-content {
    position: relative;
    width: 100%;
}

.chatbot-section {
    display: none;
    width: 100%;
    background-color: white;
}

.chatbot-section.active {
    display: block;
}

.chatbot-frame {
    width: 100%;
    height: 600px;
    border: none;
}

.chatbot-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.chatbot-description {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-top: 1px solid var(--border-color);
}

.chatbot-description p {
    font-size: 14px;
    color: #666;
}

/* 页脚样式 */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 30px 0;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.company-info p {
    margin-bottom: 5px;
    font-size: 14px;
    opacity: 0.8;
}

.copyright {
    margin-top: 10px;
    font-size: 12px;
    opacity: 0.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .chatbot-container {
        flex-direction: column;
    }
    
    .chatbot-section {
        max-width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .copyright {
        margin-top: 20px;
    }
}
