@charset "UTF-8";
/*AI学习助手 start*/
#learn{
    position:fixed;
    bottom:0;
    width:100%;
    min-width:1400px;
    height:calc(100% - 150px);
    background:url(../images/ai_bg.jpg) no-repeat center;
    background-size:100% 100%;
    overflow:hidden;
    box-sizing: border-box;
}
/*左 start*/
.left-sidebar{
    position:absolute;
    top:25px;
    left:25px;
    width:280px;
    height:calc(100% - 50px);
    background-color:#fff;
    border-radius:8px;
    box-shadow:0 2px 10px rgba(0,0,0,0.05);
    padding:20px;
    overflow:hidden;
    box-sizing: border-box;
}
.section-title{
    width:100%;
    margin:20px auto;
    text-align: center;
}
.section-title h1{
    color:#333;
    font-size:24px;
    font-weight:bold;
    margin:15px auto 10px;
}
.section-title p{
    color:#666;
    line-height:24px;
}
.nav-item{
    width:100%;
    padding:10px 15px;
    background:#f6f9fe;
    border-radius:5px;
    border-left:3px solid transparent;
    line-height:30px;
    transition:all 0.3s;
    margin-bottom:12px;
    cursor:pointer;
    overflow:hidden;
    box-sizing: border-box;
}
.nav-item.active {
    background:#f6f9fe;
    color:#1d4a9f;
    border-left-color:#1d4a9f;
}
.nav-item img{
    float:left;
    margin-right:8px;
}
/*左 end*/

/*新建对话 start*/
.main-content{
    position:absolute;
    top:25px;
    right:0;
    width:calc(100% - 330px);
    height:calc(100% - 25px);
    padding:0 25px 25px 0;
    overflow-y:scroll;
    box-sizing: border-box;
}
.page-content{
    position:relative;
    width:80%;
    height:100%;
    margin:0 auto;
}
/*输入框 start*/
.ai-header{
    width:100%;
    color:#1d4a9f;
    font-size:24px;
    font-weight:bold;
    text-align: center;
    margin-bottom:15px;
}
.ai-header span{color:#ee6522;}
.ai-seek{
    background: #fff;
    border-radius:10px;
    border:1px solid #1d4a9f;
    overflow: hidden;
}
.ai-textarea{
    width:100%;
    padding:15px;
    font-size:14px;
    line-height: 1.5;
    border:none;
    outline:none;
    resize:none;
    box-sizing: border-box;
}
.ai-textarea::placeholder {
    color:#9ca3af;
}
.ai-footer {
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:10px 15px;
}
.ai-label{
    color:#333;
    font-size:14px;
    padding:5px 15px;
    border-radius:40px;
    border:1px solid #ccc;
    cursor: pointer;
}
.ai-label.sel{
    background:#f1f6ff;
    border-color:#1d4a9f;
    color:#1d4a9f;
}
.send-btn{
    width:35px;
    height:35px;
    line-height:35px;
    background:#1d4a9f;
    border-radius:5px;
    border:none;
    padding:0;
    text-align: center;
    cursor:pointer;
}
.send-btn i{
    color:#fff;
    font-size:18px;
}
.send-btn:hover {
    background:#2355b3;
}
.send-btn:disabled{
    background:#d1d5db;
    cursor:not-allowed;
}
.agreement{
    font-size:13px;
    color:#6b7280;
    margin-top:8px;
    text-align:center;
}
.agreement a{
    color:#5e95fb;
    text-decoration:none;
}
.agreement a:hover{
    text-decoration:underline;
}
/*输入框 end*/

/*热点提问 start*/
.ai_title{
    width:100%;
    margin:20px auto 10px;
    text-align:center;
}
.category-list {
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:10px;
}
.category-item {
    padding:8px 18px;
    border-radius:20px;
    background:#fff;
    box-shadow:0 0 8px rgba(0,0,0,0.08);
    color:#333;
    cursor: pointer;
    transition: all 0.3s;
}
.category-item:hover {
    background:#e9ecef;
}
.category-item.active {
    background:#1d4a9f;
    color: white;
}

.hot-questions-container{
    position:relative;
    height:320px;
    margin-top:15px;
    overflow: hidden;
}
.questions-wrapper{
    position:relative;
    height:100%;
    overflow:hidden;
}
.questions-grid{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap:15px;
    position:absolute;
    width:100%;
    animation:seamlessScroll 20s linear infinite;
}
.question-item {
    display:flex;
    align-items:center;
    height:50px;
    line-height:50px;
    padding:0 15px;
    background:#fff;
    border-radius:5px;
    box-shadow:0 0 6px rgba(0,0,0,0.08);
    color:#555;
    font-size:14px;
    cursor:pointer;
    transition: all 0.3s;
    overflow:hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.question-item .question-icon{
    float:left;
    margin-right:5px;
}
.question-item .question-icon img{
    width:25px;
}
.question-item:hover {
    color:#1d4a9f;
}
/*热点提问 end*/

/* 无缝循环滚动动画 */
@keyframes seamlessScroll {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}
/* 悬停时暂停滚动 */
.questions-wrapper:hover .questions-grid {
    animation-play-state: paused;
}

/*智能问答 start*/
.chat-container{
    position:absolute;
    top:0;
    width:100%;
    height:calc(100% - 200px);
    padding:6px 20px 0;
    overflow-y:scroll;
    box-sizing: border-box;
}
.chat-container::-webkit-scrollbar {
    width:6px;
    background:#fff;
}
.chat-container::-webkit-scrollbar-thumb {
    border-radius:5px;
    background:#1d4a9f;
}
.chat-message{
    padding:20px;
    border-radius:8px;
    border:3px solid #fff;
    box-shadow:0 0 6px 1px rgba(0,0,0,0.1);
    margin-bottom:20px;
}
.chat-message.user{
    background:#f6f9fe;
    margin-left:100px;
}
.chat-message.ai{
    background:#f4f4f4;
    margin-right:100px;
}
.message-content{
    color:#333;
    font-size:15px;
    line-height:1.5;
}
.message-content h2{
    color:#1d4a9f;
    font-size:16px;
    font-weight:bold;
    margin-bottom:10px;
}
.message-content p{
    color:#333;
    font-size:15px;
    line-height:1.5;
    margin:8px 0;
}
.question-input{
    position:absolute;
    bottom:0;
    width:100%;
}
/*智能问答 start*/

/*智能择校 start*/
.school-message{
    position:absolute;
    top:0;
    width:100%;
    height:calc(100% - 220px);
    padding:6px 20px 0;
    overflow-y:scroll;
    box-sizing: border-box;
}
.school-message::-webkit-scrollbar {
    width:6px;
    background:#fff;
}
.school-message::-webkit-scrollbar-thumb {
    border-radius:5px;
    background:#1d4a9f;
}
.school-content{
    padding:20px;
    background:#f4f4f4;
    border-radius:8px;
    border:3px solid #fff;
    box-shadow:0 0 6px 1px rgba(0,0,0,0.1);
    margin-bottom:20px;
}
.school-content h2{
    color:#1d4a9f;
    font-size:16px;
    font-weight:bold;
    margin-bottom:10px;
}
.school-content p{
    color:#333;
    font-size:15px;
    line-height:1.5;
    margin:8px 0;
}
.school-select{
    position:absolute;
    bottom:0;
    width:100%;
}
.school-select .layui-form-item{
    margin-bottom:10px;
}
.school-select .layui-form-item .layui-input-inline{
    width:calc((100% - 20px)/3);
}
.school-select .layui-form-item .layui-input-inline:last-child{
    margin-right:0;
}
.school-select .layui-input{
    border-color:#1d4a9f;
    border-radius:4px;
    font-size:14px;
}
.school-select .layui-input:hover,
#major-sel:focus{
    border-color:#1d4a9f!important;
}
.school-select .layui-form-select dl dd.layui-this{
    background:#1d4a9f;
}
.school-select .school-submit{
    margin:0;
    text-align: center;
}
.school-btn{
    height:45px;
    line-height:45px;
    padding:0 50px;
    background:#1d4a9f;
    border-radius:5px;
    font-size:16px;
}
#major-sel{
    width:100%;
    cursor: pointer;
}
#major-sel::placeholder{
    color:#000;
}
/*智能择校 end*/

/*智能刷题 start*/
.topic-list{
    width:100%;
    margin-top:15px;
    overflow:hidden;
}
.topic-list li{
    position:relative;
    width:100%;
    background:#fff;
    border-radius:8px;
    padding:15px 20px;
    box-sizing: border-box;
}
.topic-list li img{
    position:absolute;
    left:20px;
    width:40px;
}
.topic-list li h3{
    width:100%;
    height:40px;
    line-height:40px;
    color:#333;
    font-size:16px;
    padding:0 135px 0 45px;
    overflow:hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-sizing: border-box;
}
.topic-list li a{
    position:absolute;
    right:20px;
    top:15px;
    width:120px;
    line-height:40px;
    background:#1d4a9f;
    border-radius:6px;
    color:#fff;
    font-size:16px;
    text-align:center;
    transition:all 0.5s;
    box-sizing:border-box;
}
.topic-list li a:hover{
    background:#2759b7;
}
/*智能刷题 end*/

/*使用手册 start*/
.use-left{
    position:fixed;
    width:350px;
}
.use-search{
    position:relative;
    width:100%;
    height:42px;
    border:1px solid #1d4a9f;
    border-radius:5px;
    margin:20px auto 30px;
    overflow:hidden;
    box-sizing: border-box;
}
.use-search input{
    float:left;
    border:0;
    width:280px;
    height:40px;
    font-size:14px;
    text-indent:15px;
    border-radius:5px;
    overflow:hidden;
}
.use-search a{
    position:absolute;
    z-index:9;
    top:0;
    right:-2px;
    width:70px;
    height:40px;
    line-height:40px;
    background:#1d4a9f;
    color:#fff;
    text-align: center;
    overflow:hidden;
}
.use-btn li{
    width:100%;
    line-height:1.5;
    color:#333;
    font-size:17px;
    margin-bottom:20px;
    cursor:pointer;
}
.use-btn li.active{
    color:#1d4a9f;
    font-weight:bold;
}

.use-right{
    float:right;
    width:calc(100% - 380px);
    overflow:hidden;
}
.use-item{
    width:100%;
    margin-bottom:40px;
}
.use-item h1{
    color:#000;
    font-size:17px;
    font-weight:bold;
    margin:10px 0;
}
.use-item h2{
    color:#000;
    font-size:16px;
    margin:10px 0;
}
.use-item p{
    color:#333;
    font-size:15px;
    line-height:1.5;
    margin-bottom:5px;
}
/*使用手册 end*/

/*知识图谱 start*/
.major-content{
    position:absolute;
    width:100%;
    height:100%;
}
.major-content header {
    width:100%;
    text-align: center;
}
.major-content h1 {
    color:#1d4a9f;
    font-size:22px;
    font-weight:bold;
}
.major-content .subtitle {
    color:#666;
    font-size:14px;
    margin:5px 0 10px;
}
.sidebar {
    position:absolute;
    left:0;
    width:300px;
    height:100%;
    background:#fff;
    border-radius: 10px;
    padding:20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    box-sizing:border-box;
}
.search-box {
    margin-bottom:10px;
}
.search-box input{
    width:100%;
    padding:10px 15px;
    border:1px solid #1d4a9f;
    border-radius:5px;
    font-size:15px;
    box-sizing:border-box;
}
.sidebar .major-title{
    position:relative;
    width:100%;
    font-size:20px;
    font-weight:bold;
    color:#1d4a9f;
    padding-bottom:10px;
    margin-bottom:10px;
    text-align: center;
}
.sidebar .major-title::after{
    content: '';
    position:absolute;
    bottom:0;
    left:50%;
    transform: translate(-50%,0);
    width:25px;
    height:4px;
    background:#1d4a9f;
}
.major-list{
    width:100%;
    overflow: hidden;
}
.major-item{
    float:left;
    width:calc((100% - 20px)/3);
    line-height:40px;
    background:#f6f9fe;
    border-radius: 4px;
    margin:0 10px 10px 0;
    text-align: center;
    cursor:pointer;
    transition:all 0.3s;
}
.major-item:nth-child(3n){
    margin-right:0;
}
.major-item:hover,.major-item.active {
    background:#1d4a9f;
    color:#fff;
}

.graph-container {
    position:absolute;
    top:0;
    right:0;
    width:calc(100% - 320px);
    height:100%;
    background:#fff;
    border-radius:10px;
    padding:20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow:hidden;
    box-sizing:border-box;
}

#knowledge-graph {
    width: 100%;
    height: 100%;
}

.tooltip {
    position: absolute;
    padding: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 5px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
    max-width: 300px;
}

.legend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 10px 15px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.node-info {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    display: none;
}

.node-info h3 {
    color:#1a73e8;
    font-size:16px;
    margin-bottom:10px;
}
@media (max-width: 1024px) {
    .main-content {
        flex-direction: column;
    }
    .sidebar {
        flex: 1;
    }
}
/*知识图谱 end*/