/* 遮罩层样式 */
.agreement {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* 弹窗主体样式 */
.agreementbox {
    position: relative;
    box-sizing: border-box;
    border-radius: 5px;
    border: 1px solid #e4e7eb;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,.3);
    left: 50%;
    top:50%;
    transform: translate(-50%,-50%);
    width: 50%;
    max-width: 800px;
    height: 80vh;
    overflow: hidden;
}

.agreement-title {
    font-size: 18px;
    font-weight: 600;
    margin-left: 10px;
}

.agreementbox-close {
    cursor: pointer;
    font-size: 20px;
    color: #999;
    position: absolute;
    top: 13px;
    right: 9px;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
}

.agreementbox-close:hover {
    color: #333;
}

/* 核心：左右分栏布局 - 新增相对定位，作为按钮容器的参考 */
.agreement-content {
    display: flex;
    height: calc(100% - 60px);
    position: relative; /* 新增 */
}

/* 左侧切换栏样式 - 完全不变 */
.left-switch {
    width: 15%;
    border-right: 1px solid #eee;
    padding: 16px 0;
    overflow-y: auto;
}

.switch-item {
    padding: 12px 16px;
    cursor: pointer;
    color: #666;
    transition: all 0.2s;
}

.switch-item.active {
    background: #f5f5f5;
    color: #1890ff;
    font-weight: 500;
    border-left: 3px solid #1890ff;
}

.switch-item:hover {
    background: #f9f9f9;
}

/* 右侧内容区样式 - 关键修改：裁剪底部，隔离按钮 */
.right-content {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    position: relative;
    height: 100%;
    box-sizing: border-box;
    clip-path: inset(0 0 80px 0); /* 核心新增：裁剪底部80px */
    margin-bottom: -80px; /* 核心新增：配合裁剪调整滚动范围 */
}

/* 协议内容区块样式 - 移除底部内边距 */
.agreement-section {
    min-height: 100%;
    /* 删掉原有padding-bottom */
}

.agreement-section h3 {
    font-size: 16px;
    margin-bottom: 16px;
    color: #333;
}

.agreement-section p {
    line-height: 1.8;
    color: #666;
    margin-bottom: 16px;
}

/* 底部按钮样式 - 简化定位，由容器控制 */
.confirm-btn {
    margin: 0;
    display: block;
    width: 200px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: #ccc;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: not-allowed;
    transition: background 0.2s;
}

.confirm-btn.enabled {
    background: #1890ff;
    cursor: pointer;
}

.confirm-btn.enabled:hover {
    background: #40a9ff;
}

/* 新增：按钮容器 - 固定右侧底部，独立区域 */
.agreement-btn-wrap {
    position: absolute;
    bottom: 0;
    right: 0;
    width: calc(100% - 15%);
    height: 80px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-top: 1px solid #eee;
}

#resource-agreement,
#member-agreement,
#service-agreement,
#privacy-agreement{
    font-size: 14px;
}



/**
重新定义register.css中的样式
 */
.register_p {
    cursor: pointer !important;
    user-select: none;
    line-height: 1.5;
}
/* 保留协议链接的蓝色样式，区分文字 */
.register_p .register_blue,
.register_p .register_blue a {
    color: #0d99f9 !important;
    text-decoration: none;
}
.register_p .register_blue a:hover {
    text-decoration: underline;
}
.register_p #intertionRegister_check.register_click {
    color: #0d99f9 !important;
    font-weight: 500;
}
