/* 基础样式 */
body {
    font-family: 'Noto Sans SC', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f7fa;
    color: #2d3748;
}


/* 登录样式 */
.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    width: 500px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}
.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}
.logo {
    text-align: center;
    margin-bottom: 30px;
}
.logo h2 {
    font-size: 28px;
    margin-bottom: 10px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.logo p {
    color: #666;
    font-size: 14px;
}
.input-group {
    margin-bottom: 20px;
    position: relative;
    display:block;
}
.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}
.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}
.input-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
    outline: none;
}
.captcha-group {
    display: flex;
    gap: 10px;
}
.captcha-group input {
    flex: 1;
}
.get-captcha {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0 15px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}
.get-captcha:hover {
    background: var(--secondary-color);
}
.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}
.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}
.footer-links {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}
.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
}
.error-message {
    color: #e63946;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}


/* 顶部个人信息栏 */
.profile-header {
    background-color: #4a6bdf;
    color: white;

    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: relative;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid white;
    margin-right: 20px;
}

.profile-info h1 {
    margin: 0;
    font-size: 22px;
}

.status-active {
    color: #48bb78;
    font-weight: 500;
}

/* 主容器 */
.main-container {
    display: flex;
    min-height: calc(100vh - 90px);
    max-width: 1200px;
    margin: 0 auto;
}

/* 左侧边栏 */
.sidebar {
    width: 240px;
    background-color: white;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.05);
}

.side-menu ul {
    list-style: none;
    padding: 0;
}

.side-menu li {
    margin-bottom: 10px;
}

.side-menu a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #4a5568;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
}

.side-menu a:hover {
    background-color: #edf2f7;
}

.side-menu  li.active {
    background-color: #ebf4ff;
    color: #4a6bdf;
    font-weight: 500;
    border-radius: 5px;
}

.side-menu .icon {
    margin-right: 10px;
    font-size: 18px;
}

.quick-stats {
    margin-top: 30px;
}

.stat-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.stat-item.highlight {
    background-color: #fffaf0;
    color: #dd6b20;
}

.stat-icon {
    margin-right: 10px;
    font-size: 16px;
}

/* 右侧主内容区 */
.assistant-main {
    flex: 1;
    background-color: white;
    display: flex;
    flex-direction: column;
}

.chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}
.message-input {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}
.message-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.send-button {
    padding: 10px 20px;
    background-color: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.send-button:hover {
    background-color: #3b5bca;
}
/* 添加iframe样式 */
.content-frame {
    flex: 1;
    border: none;
    width: 100%;
    min-height: 100%;
    background-color: white;
}

/* 修改dashboard-container样式 */
.dashboard-container {
    display: flex;
    height: 100vh;
    overflow: hidden; /* 防止滚动条出现 */
}

.logout-link {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    background-color: rgba(0,0,0,0.2);
    text-decoration: none;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s;
}

.logout-link:hover {
    background-color: rgba(0,0,0,0.3);
}