/* ========== 协议页 ========== */
.agreement{
    width: 100%;
}
.agreement .box{
    display: flex;
    flex-direction: column;
    gap: 25px;
}



/* ========== 协议内容区 ========== */
.agreement-content{
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* ========== 左侧侧边栏 ========== */
.agreement-sidebar{
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-title{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #409EFF 0%, #53a8ff 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
    margin-bottom: 5px;
}

.sidebar-title i{
    font-size: 18px;
}

.sidebar-nav{
    background: #ffffff;
    box-shadow: var(--shadow);
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.sidebar-nav ul li{
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-nav ul li:last-child{
    border-bottom: none;
}

.sidebar-nav ul li a{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    color: #666666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.sidebar-nav ul li a i{
    color: #999999;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.sidebar-nav ul li.active a{
    background: #ecf5ff;
    color: #409EFF;
    font-weight: 600;
    border-left: 3px solid #409EFF;
}

.sidebar-nav ul li.active a i{
    color: #409EFF;
}

.sidebar-nav ul li a:hover{
    background: #f8f9fa;
    color: #409EFF;
}

/* ========== 右侧主内容 ========== */
.agreement-main{
    background: #ffffff;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 40px;
}

/* 文档标题 */
.document-title{
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #ecf5ff;
}

.document-title h1{
    font-size: 32px;
    font-weight: 700;
    color: #333333;
    line-height: 1.3;
    margin-bottom: 15px;
}

.document-meta{
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.document-meta span{
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #999999;
}

.document-meta span i{
    color: #53a8ff;
    font-size: 16px;
}

/* 提示框 */
.alert-box{
    display: flex;
    gap: 15px;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid;
}

.alert-box.warning{
    background: #fff7e6;
    border-left-color: #faad14;
}

.alert-box.info{
    background: #e6f7ff;
    border-left-color: #409EFF;
}

.alert-box i{
    font-size: 24px;
    flex-shrink: 0;
}

.alert-box.warning i{
    color: #faad14;
}

.alert-box.info i{
    color: #409EFF;
}

.alert-box div{
    flex: 1;
}

.alert-box strong{
    display: block;
    font-size: 16px;
    margin-bottom: 8px;
}

.alert-box.warning strong{
    color: #faad14;
}

.alert-box.info strong{
    color: #409EFF;
}

.alert-box p{
    margin: 0;
    color: #666666;
    line-height: 1.6;
    font-size: 14px;
}

/* 文档章节 */
.doc-section{
    margin-bottom: 40px;
    scroll-margin-top: 118px;
}

.doc-section h2{
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e0e0e0;
}

.doc-section h2 i{
    color: #409EFF;
    font-size: 24px;
}

.doc-section h3{
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    margin: 20px 0 12px;
}

.doc-section p{
    color: #555555;
    line-height: 1.8;
    margin-bottom: 12px;
    font-size: 15px;
}

.doc-section ul{
    margin: 15px 0 15px 30px;
}

.doc-section ul li{
    margin-bottom: 10px;
    list-style: disc;
    color: #555555;
    line-height: 1.6;
    font-size: 15px;
}

/* 联系信息 */
.contact-box{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.contact-item{
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover{
    background: #409EFF;
    transform: translateY(-3px);
}

.contact-item:hover i,
.contact-item:hover strong,
.contact-item:hover span{
    color: #ffffff;
}

.contact-item i{
    width: 50px;
    height: 50px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #409EFF;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-info{
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-info strong{
    font-size: 14px;
    color: #666666;
}

.contact-info span{
    font-size: 16px;
    color: #333333;
    font-weight: 600;
}

/* 返回顶部按钮 - 移除样式，使用style.css中的样式 */

/* ========== 响应式设计 ========== */
@media (max-width: 960px){
    .agreement-content{
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .agreement-sidebar{
        position: static;
        align-self: stretch;
    }
    .breadcrumb{
        font-size: 13px;
        padding: 10px 15px;
        overflow-x: auto;
        white-space: nowrap;
    }
    .agreement-main{
        padding: 25px 20px;
    }
    .document-title h1{
        font-size: 24px;
    }
    .document-meta{
        gap: 15px;
    }
    .document-meta span{
        font-size: 13px;
    }
    .doc-section{
        margin-bottom: 30px;
    }
    .doc-section h2{
        font-size: 18px;
    }
    .doc-section h3{
        font-size: 16px;
    }
    .doc-section p,
    .doc-section ul li{
        font-size: 14px;
    }
    .alert-box{
        flex-direction: column;
        gap: 10px;
    }
    .contact-box{
        grid-template-columns: 1fr;
    }
    .sidebar-nav ul li a{
        padding: 12px 15px;
        font-size: 13px;
    }
    .sidebar-title{
        font-size: 15px;
    }
}
